diff options
author | Christian Grothoff <christian@grothoff.org> | 2007-09-08 19:18:45 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2007-09-08 19:18:45 +0000 |
commit | 1b47f81267ec2b9f53afc33c4c67eb49884ab566 (patch) | |
tree | 75daa42351a584b4317e6ce803967b0947ed7db2 /src/daemon/connection.c | |
parent | f9d24b357cbe92296111459b3ab2181d1a60ad42 (diff) | |
download | libmicrohttpd-1b47f81267ec2b9f53afc33c4c67eb49884ab566.tar.gz libmicrohttpd-1b47f81267ec2b9f53afc33c4c67eb49884ab566.zip |
use shutdown
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index 03875559..d3a98745 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -187,6 +187,7 @@ MHD_need_100_continue (struct MHD_Connection *connection) | |||
187 | static void | 187 | static void |
188 | connection_close_error(struct MHD_Connection * connection) | 188 | connection_close_error(struct MHD_Connection * connection) |
189 | { | 189 | { |
190 | SHUTDOWN (connection->socket_fd, SHUT_RDWR); | ||
190 | CLOSE (connection->socket_fd); | 191 | CLOSE (connection->socket_fd); |
191 | connection->socket_fd = -1; | 192 | connection->socket_fd = -1; |
192 | if (connection->daemon->notify_completed != NULL) | 193 | if (connection->daemon->notify_completed != NULL) |
@@ -1301,6 +1302,7 @@ MHD_connection_handle_write (struct MHD_Connection *connection) | |||
1301 | MHD_DLOG (connection->daemon, | 1302 | MHD_DLOG (connection->daemon, |
1302 | "Closing connection (http 1.0 or end-of-stream for unknown content length)\n"); | 1303 | "Closing connection (http 1.0 or end-of-stream for unknown content length)\n"); |
1303 | #endif | 1304 | #endif |
1305 | SHUTDOWN (connection->socket_fd, SHUT_RDWR); | ||
1304 | CLOSE (connection->socket_fd); | 1306 | CLOSE (connection->socket_fd); |
1305 | } | 1307 | } |
1306 | connection->socket_fd = -1; | 1308 | connection->socket_fd = -1; |