X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fyaz-proxy.cpp;h=853d5ee2ce66ffa2f1cad7b69c4a57a365b69d3a;hb=f3fd0f268287ca2508f201360cf98623db1e4032;hp=0752440da9d9e3ce659a6f1420205814e8d1d649;hpb=d7ed1a9024ed29911ac5ce2a58fb4996de63bf46;p=yazpp-moved-to-github.git diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 0752440..853d5ee 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.58 2003-10-13 22:38:07 adam Exp $ + * $Id: yaz-proxy.cpp,v 1.60 2003-10-16 08:28:10 adam Exp $ */ #include @@ -53,7 +53,7 @@ static const char *apdu_name(Z_APDU *apdu) } Yaz_Proxy::Yaz_Proxy(IYaz_PDU_Observable *the_PDU_Observable, - Yaz_Proxy *parent = 0) : + Yaz_Proxy *parent) : Yaz_Z_Assoc(the_PDU_Observable), m_bw_stat(60), m_pdu_stat(60) { m_PDU_Observable = the_PDU_Observable; @@ -985,7 +985,7 @@ Z_APDU *Yaz_Proxy::handle_syntax_validation(Z_APDU *apdu) if (apdu->which == Z_APDU_searchRequest) { Z_SearchRequest *sr = apdu->u.searchRequest; - if (*sr->smallSetUpperBound > 0 || *sr->largeSetLowerBound > 1) + if (*sr->smallSetUpperBound > 0 || *sr->mediumSetPresentNumber > 0) { int err = 0; char *addinfo = 0; @@ -1213,7 +1213,6 @@ void Yaz_ProxyClient::connectNotify() const char *h = get_hostname(); yaz_log (LOG_LOG, "%sConnection accepted by %s timeout=%d", s, h, m_target_idletime); - int to; timeout(m_target_idletime); if (!m_server) pre_init_client();