commit 796f2638d650b2002c7128da6a73e2120ea4edb4 parent bde481fb521f299d9c5bf654573f73a7958d461a Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 24 Aug 2008 16:06:00 +0000 fixing problem with busy response reported on mailinglist Diffstat:
| M | src/daemon/connection.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/daemon/connection.c b/src/daemon/connection.c @@ -1832,6 +1832,13 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) connection->state = MHD_CONNECTION_CONTINUE_SENDING; break; } + if (connection->response != NULL) + { + /* we refused (no upload allowed!) */ + connection->remaining_upload_size = 0; + /* force close, in case client still tries to upload... */ + connection->read_closed = MHD_YES; + } connection->state = (connection->remaining_upload_size == 0) ? MHD_CONNECTION_FOOTERS_RECEIVED : MHD_CONNECTION_CONTINUE_SENT; continue;