Changes to deal with failed session creation by keeping the new session in existence until all related DCBs have closed; minor changes in response to reviews.

This commit is contained in:
Martin Brampton
2015-09-17 08:15:32 +01:00
parent 30239f395a
commit 0cba9b797f
3 changed files with 65 additions and 46 deletions

View File

@ -350,10 +350,6 @@ int n_connect = 0;
client->remote = strdup(inet_ntoa(addr.sin_addr));
memcpy(&client->func, &MyObject, sizeof(GWPROTOCOL));
/* we don't need the session */
/* But not clear that we have one! */
/* client->session = NULL; */
/* create the session data for HTTPD */
client_data = (HTTPD_session *)calloc(1, sizeof(HTTPD_session));
client->data = client_data;