|Date:||Tue, 7 Jun 2011 13:17:10 -0400|
I’m using the library and reject (invalid URL) a connection “early” in the callback MHD_AccessHandlerCallback. When a call MHD_queue_response I always go in the following code that terminate the connection:
if (connection->state == MHD_CONNECTION_HEADERS_PROCESSED)
/* response was queued "early",
refuse to read body / footers or further
SHUTDOWN (connection->socket_fd, SHUT_RD);
connection->read_closed = MHD_YES;
connection->state = MHD_CONNECTION_FOOTERS_RECEIVED;
Is it possible to keep the connection open and to send a response “early”?
I’m using version 0.4.6. If this is fixed in a later version, I’ll do the upgrade.
|[Prev in Thread]||Current Thread||[Next in Thread]|