From 0cbdc649960cd1072c1b8c5fa244a1f071d23cdb Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 20 Aug 2012 16:33:07 +0200 Subject: [PATCH] PDU_Assoc: Fix missing close if session is dead When queue is flushed and session is daed, close session. Fixes a problem with missing close in HTTP 1.0 - no keepalive mode. --- src/yaz-pdu-assoc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yaz-pdu-assoc.cpp b/src/yaz-pdu-assoc.cpp index b94213e..ded89bd 100644 --- a/src/yaz-pdu-assoc.cpp +++ b/src/yaz-pdu-assoc.cpp @@ -389,6 +389,8 @@ int PDU_Assoc::flush_PDU() yaz_log(m_log, "maskObserver 8"); m_socketObservable->maskObserver(this, SOCKET_OBSERVE_READ| SOCKET_OBSERVE_EXCEPT); + if (m_session_is_dead) + shutdown(); } return r; } -- 1.7.10.4