commit d21cdf7f463a049af3c67ea28a2dc75a9f8265e0
parent 49481e1ae6a5d98def98c77ea27893c2e18c3384
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 26 Feb 2008 02:16:33 +0000
shutdown on read error
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
@@ -1140,6 +1140,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;
}
connection->read_buffer_offset += bytes_read;