libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] call_connection_handler (connection); /* "final" call */


From: Decebal Epuran
Subject: [libmicrohttpd] call_connection_handler (connection); /* "final" call */ is called twice
Date: Fri, 6 Oct 2017 12:14:21 -0400

I am developing a web server that mainly handles POST requests (json).
I'm getting the "final call" (*upload_data_size == 0) when all the POST data is transfered to my buffer and I'm ready to parse the json data and do additional work before send the reply.
If I'm going over the timeout limit (MHD_OPTION_CONNECTION_TIMEOUT) without sending any reply I'm getting another "final call" (*upload_data_size == 0) before the MHD_OPTION_NOTIFY_COMPLETED call.
Is this behavior by design or something is not right in my code?

Thanks

reply via email to

[Prev in Thread] Current Thread [Next in Thread]