From: Adam Dickmeiss Date: Mon, 20 Aug 2012 14:33:07 +0000 (+0200) Subject: PDU_Assoc: Fix missing close if session is dead X-Git-Tag: v1.3.2~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=0cbdc649960cd1072c1b8c5fa244a1f071d23cdb;p=yazpp-moved-to-github.git 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. --- 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; }