From 02b2af5f245a8d119300186c597667bf60882272 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Wed, 1 Jan 2020 22:46:03 +0100 Subject: [PATCH] Always uncork after Http parse --- src/HttpContext.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/HttpContext.h b/src/HttpContext.h index b7991e3..201d45d 100644 --- a/src/HttpContext.h +++ b/src/HttpContext.h @@ -247,6 +247,9 @@ private: return (us_socket_t *) asyncSocket; } + /* It is okay to uncork a closed socket and we need to */ + ((AsyncSocket *) s)->uncork(); + /* We cannot return nullptr to the underlying stack in any case */ return s; });