-/* $Id: connection.c,v 1.7 2007-07-12 08:01:06 adam Exp $
+/* $Id: connection.c,v 1.9 2007-07-25 13:27:06 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);
}
}
connection_destroy(con);
/* start all over .. at some point it will be NULL */
con = host->connections;
+ continue;
}
else if (!con->client)
{
- yaz_log(YLOG_WARN, "connect_unresolved_host : ophan client");
connection_destroy(con);
/* start all over .. at some point it will be NULL */
con = host->connections;
+ continue;
}
else
{
connection_connect(con);
- con = con->next;
}
}
+ else
+ {
+ yaz_log(YLOG_LOG, "connect_resolver_host: state=%d", con->state);
+ }
+ con = con->next;
}
}
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);