fixes double close

Sun, 21 Jan 2018 08:54:28 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 21 Jan 2018 08:54:28 +0100
changeset 195
d367b687bc74
parent 194
6345f50208d5
child 196
0459c94a60ed

fixes double close

src/server/daemon/error.c file | annotate | diff | comparison | revisions
src/server/daemon/sessionhandler.c file | annotate | diff | comparison | revisions
--- a/src/server/daemon/error.c	Sun Jan 14 10:38:09 2018 +0100
+++ b/src/server/daemon/error.c	Sun Jan 21 08:54:28 2018 +0100
@@ -116,6 +116,4 @@
     
     req->connection->write(req->connection, buf, len);
     req->connection->write(req->connection, msg.ptr, msg.length);
-    
-    req->connection->close(req->connection);
 }
--- a/src/server/daemon/sessionhandler.c	Sun Jan 14 10:38:09 2018 +0100
+++ b/src/server/daemon/sessionhandler.c	Sun Jan 21 08:54:28 2018 +0100
@@ -426,7 +426,7 @@
     HTTPRequest *request = io->request;
     
     if(event->error) {
-        log_ereport(LOG_VERBOSE, "sessionhandler http io error: %d", io->error);
+        log_ereport(LOG_VERBOSE, "sessionhandler http io error: %d fd: %d", io->error, request->connection->fd);
     }
     
     free(request->netbuf->inbuf);

mercurial