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) |
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) { /* other side closed connection */ connection->read_closed = MHD_YES; + SHUTDOWN (connection->socket_fd, SHUT_RD); return MHD_NO; } connection->read_buffer_offset += bytes_read; |