From 3a01cc896d10db7d8a7a1379146c52e1abc13c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Sch=C3=83=C2=BCldt?= Date: Thu, 9 Oct 2014 16:58:24 +0800 Subject: [PATCH] ssl renew timeout while post keeps coming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian Schüldt --- lib/handshake.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/handshake.c b/lib/handshake.c index f004ad0d..856297db 100644 --- a/lib/handshake.c +++ b/lib/handshake.c @@ -164,7 +164,10 @@ http_postbody: goto bail; } goto http_complete; - } + } else + libwebsocket_set_timeout(wsi, + PENDING_TIMEOUT_HTTP_CONTENT, + AWAITING_TIMEOUT); } break;