From c4d2639ed876eebf74faac1f659d1d03744efbc2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 12 Jul 2014 23:17:25 +0900 Subject: [PATCH] nghttpd: Don't shutdown session if pending data is left --- src/HttpServer.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/HttpServer.cc b/src/HttpServer.cc index c80529c4..3905e00f 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -598,6 +598,10 @@ int Http2Handler::wait_events() active = 1; } + if(pending_datalen_ > 0) { + active = 1; + } + return active ? 0 : -1; }