aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-14 17:59:09 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-14 17:59:09 +0000
commit282386193c63b9c02d7e7201d06b7fc19c2708d4 (patch)
tree2b3e7e42168db5f1f5c63baa87d82c57e29b53dd /src/microhttpd/connection.c
parent326441639c0b3eb3c84d1b3368e1e12b4aba75e7 (diff)
downloadlibmicrohttpd-282386193c63b9c02d7e7201d06b7fc19c2708d4.tar.gz
libmicrohttpd-282386193c63b9c02d7e7201d06b7fc19c2708d4.zip
eliminate shutdown calls that are not required, strictly speaking
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 8f2c9bca..a16bf62d 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1504,7 +1504,9 @@ do_read (struct MHD_Connection *connection)
1504 { 1504 {
1505 /* other side closed connection */ 1505 /* other side closed connection */
1506 connection->read_closed = MHD_YES; 1506 connection->read_closed = MHD_YES;
1507 SHUTDOWN (connection->socket_fd, SHUT_RD); 1507 /* shutdown is not required here, as the other side already
1508 knows; so flagging this internally should suffice */
1509 /* SHUTDOWN (connection->socket_fd, SHUT_RD); */
1508 return MHD_YES; 1510 return MHD_YES;
1509 } 1511 }
1510 connection->read_buffer_offset += bytes_read; 1512 connection->read_buffer_offset += bytes_read;