* 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.61 2003-10-16 13:40:41 adam Exp $
*/
#include <assert.h>
}
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;
proxy_host = m_default_target;
}
int client_idletime = -1;
- int pre_init = 0;
url[0] = m_default_target;
url[1] = 0;
if (cfg)
+ {
+ int pre_init = 0;
+ int log_mask = 0;
cfg->get_target_info(proxy_host, url, &m_bw_max,
&m_pdu_max, &m_max_record_retrieve,
&m_target_idletime, &client_idletime,
&parent->m_max_clients,
&m_keepalive_limit_bw,
&m_keepalive_limit_pdu,
- &pre_init);
+ &pre_init, &log_mask);
+ }
if (client_idletime != -1)
{
m_client_idletime = client_idletime;
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;
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();
int max_clients;
int keepalive_limit_bw, keepalive_limit_pdu;
int pre_init;
+ int log_mask = 0;
Yaz_ProxyConfig *cfg = check_reconfigure();
&max_clients,
&keepalive_limit_bw,
&keepalive_limit_pdu,
- &pre_init) ; i++)
+ &pre_init, &log_mask) ; i++)
{
if (pre_init)
{