diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-02-26 02:16:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-02-26 02:16:33 +0000 |
commit | d21cdf7f463a049af3c67ea28a2dc75a9f8265e0 (patch) | |
tree | 9931734d2acc981e2e01b5da3f8ea9a80acd3236 | |
parent | 49481e1ae6a5d98def98c77ea27893c2e18c3384 (diff) | |
download | libmicrohttpd-d21cdf7f463a049af3c67ea28a2dc75a9f8265e0.tar.gz libmicrohttpd-d21cdf7f463a049af3c67ea28a2dc75a9f8265e0.zip |
shutdown on read error
-rw-r--r-- | src/daemon/connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index b6c59fba..08b503d7 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -1140,6 +1140,7 @@ do_read (struct MHD_Connection *connection) | |||
1140 | { | 1140 | { |
1141 | /* other side closed connection */ | 1141 | /* other side closed connection */ |
1142 | connection->read_closed = MHD_YES; | 1142 | connection->read_closed = MHD_YES; |
1143 | SHUTDOWN (connection->socket_fd, SHUT_RD); | ||
1143 | return MHD_NO; | 1144 | return MHD_NO; |
1144 | } | 1145 | } |
1145 | connection->read_buffer_offset += bytes_read; | 1146 | connection->read_buffer_offset += bytes_read; |