diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index a7f3ceae..e30e019a 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -302,7 +302,8 @@ MHD_connection_close (struct MHD_Connection *connection, | |||
302 | struct MHD_Daemon *daemon; | 302 | struct MHD_Daemon *daemon; |
303 | 303 | ||
304 | daemon = connection->daemon; | 304 | daemon = connection->daemon; |
305 | SHUTDOWN (connection->socket_fd, SHUT_RDWR); | 305 | SHUTDOWN (connection->socket_fd, |
306 | (connection->read_closed == MHD_YES) ? SHUT_WR : SHUT_RDWR); | ||
306 | connection->state = MHD_CONNECTION_CLOSED; | 307 | connection->state = MHD_CONNECTION_CLOSED; |
307 | if ( (NULL != daemon->notify_completed) && | 308 | if ( (NULL != daemon->notify_completed) && |
308 | (MHD_YES == connection->client_aware) ) | 309 | (MHD_YES == connection->client_aware) ) |