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.