From 1c579e7c96bf635658b0b1729cbf8c0a3b223b1a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 25 Jun 2003 21:57:45 +0000 Subject: [PATCH] Proxy now closes socket when Close PDU is received from target. --- ChangeLog | 4 ++++ src/yaz-proxy.cpp | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e0de222..25aaa4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Proxy now closes socket when Close PDU is received from target. + +Proxy does keep alive of sockets for anonymous sessions. + Bug fix: in some cases the Proxy could issue a Present Request which was out of range (code 13). diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 562b72c..c0c24d0 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -2,7 +2,7 @@ * Copyright (c) 1998-2003, Index Data. * See the file LICENSE for details. * - * $Id: yaz-proxy.cpp,v 1.42 2003-06-11 22:08:56 adam Exp $ + * $Id: yaz-proxy.cpp,v 1.43 2003-06-25 21:57:45 adam Exp $ */ #include @@ -633,4 +633,8 @@ void Yaz_ProxyClient::recv_Z_PDU(Z_APDU *apdu) yaz_log (LOG_LOG, "Sending %s to client", apdu_name(apdu)); m_server->send_Z_PDU(apdu); } + if (apdu->which == Z_APDU_close) + { + shutdown(); + } } -- 1.7.10.4