libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 0f7b49b524f9adfcf6f71e64d9b76b1be9f96f70
parent 7f633f7088ed7e6545c38c82d7b46cc5b264b3e6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 18 Nov 2010 21:56:42 +0000

patch as suggested in 1621

Diffstat:
MChangeLog | 3+++
Msrc/daemon/connection.c | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,6 @@ +Thu Nov 18 22:55:58 CET 2010 + Fixing #1621 (socket not closed under certain circumstances). -CG/jaredc + Wed Nov 17 12:16:53 CET 2010 Allowing signalling of errors in generating chunked responses to clients (by closing connectins) using the new diff --git a/src/daemon/connection.c b/src/daemon/connection.c @@ -1456,7 +1456,7 @@ do_read (struct MHD_Connection *connection) /* other side closed connection */ connection->read_closed = MHD_YES; SHUTDOWN (connection->socket_fd, SHUT_RD); - return MHD_NO; + return MHD_YES; } connection->read_buffer_offset += bytes_read; return MHD_YES;