From aea59072802dbcc47655a4ed12b9ae28b89fea8e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 25 Nov 2005 19:37:28 +0000 Subject: [PATCH] Fixed a problem with HTTP 1.1 hanging connections that occurred for some SRW/SRU responses (such as Explain, HTTP 404, ..). --- src/yaz-proxy.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 1bea004..f296d79 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -1,4 +1,4 @@ -/* $Id: yaz-proxy.cpp,v 1.38 2005-10-13 09:58:52 adam Exp $ +/* $Id: yaz-proxy.cpp,v 1.39 2005-11-25 19:37:28 adam Exp $ Copyright (c) 1998-2005, Index Data. This file is part of the yaz-proxy. @@ -1107,6 +1107,9 @@ int Yaz_Proxy::send_http_response(int code) m_bytes_sent += len; m_bw_stat.add_bytes(len); logtime(); + + recv_GDU_more(true); + return r; } @@ -1153,6 +1156,9 @@ int Yaz_Proxy::send_srw_response(Z_SRW_PDU *srw_pdu) m_bytes_sent += len; m_bw_stat.add_bytes(len); logtime(); + + recv_GDU_more(true); + return r; } @@ -2453,6 +2459,7 @@ int Yaz_Proxy::file_access(Z_HTTP_Request *hreq) } int len; send_GDU(gdu, &len); + recv_GDU_more(true); return 1; } -- 1.7.10.4