mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
http: ensure http_parser on_message_complete cb is always called
This commit is contained in:
1 parent
bbed9d530d
commit
bcc2baa94a
1 file changed
+2
@@ -151,6 +151,8 @@ void
|
||||
Client::close_connection(const uint16_t conn_id)
|
||||
{
|
||||
auto &req = requests_[conn_id];
|
||||
// ensure on_message_complete is fired
|
||||
http_parser_execute(req.parser.get(), req.parser_settings.get(), "", 0);
|
||||
// close the socket
|
||||
req.connection->close();
|
||||
// remove from active requests
|
||||
|
||||
Reference in new issue
Block a user