-/* $Id: connection.c,v 1.7 2007-07-12 08:01:06 adam Exp $
+/* $Id: connection.c,v 1.8 2007-07-25 11:41:32 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
co->state = Conn_Open;
if (cl)
client_set_state(cl, Client_Connected);
- iochan_settimeout(i, 180);
+ iochan_settimeout(i, global_parameters.z3950_session_timeout);
}
}
con->link = link;
con->state = Conn_Connecting;
con->iochan = iochan_create(cs_fileno(link), connection_handler, 0);
- iochan_settimeout(con->iochan, 30);
+ iochan_settimeout(con->iochan, global_parameters.z3950_connect_timeout);
iochan_setdata(con->iochan, con);
pazpar2_add_channel(con->iochan);
-/* $Id: getaddrinfo.c,v 1.6 2007-07-09 20:00:41 adam Exp $
+/* $Id: getaddrinfo.c,v 1.7 2007-07-25 11:41:32 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
*(port++) = '\0';
else
port = "210";
-
+
+ yaz_log(YLOG_LOG, "Resolving %s", w->hostport);
+ sleep(10);
#if HAVE_GETADDRINFO
hints.ai_flags = 0;
hints.ai_family = PF_INET;
-/* $Id: logic.c,v 1.55 2007-07-18 13:37:30 adam Exp $
+/* $Id: logic.c,v 1.56 2007-07-25 11:41:32 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
100,
MAX_CHUNK,
0,
- 0
+ 0,
+ 180,
+ 30
};
-
// Recursively traverse query structure to extract terms.
void pull_terms(NMEM nmem, struct ccl_rpn_node *n, char **termlist, int *num)
{
-/* $Id: parameters.h,v 1.4 2007-06-06 11:56:35 marc Exp $
+/* $Id: parameters.h,v 1.5 2007-07-25 11:41:32 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
int chunk;
ODR odr_out;
ODR odr_in;
+ int z3950_session_timeout;
+ int z3950_connect_timeout;
};
extern struct parameters global_parameters;