libmicrohttpd
[Top][All Lists]
Advanced

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

[libmicrohttpd] Abort POST request in libmicrohttpd


From: Дмитрий Степанов
Subject: [libmicrohttpd] Abort POST request in libmicrohttpd
Date: Tue, 19 Mar 2019 16:12:37 +0300

Hello! 

Is it possible to abort big POST request from the client (actually client uses chunked transfer encoding) by sending 500 (or whenever else) error with body that contains useful information?
I'm able to abort POST request in MHD_AccessHandlerCallback simply returning MHD_NO, but in that case libmicrohttpd just resets the connection.
If i try to send a response in MHD_AccessHandlerCallback while *upload_data_size is not zero (client's POST request in progress)- MHD_queue_response returns MHD_NO (reponse  is not actually sent).

Thanks!

reply via email to

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