if ((err = ZOOM_connection_error(link, &error, &addinfo)))
{
yaz_log(YLOG_LOG, "Error %s from %s",
if ((err = ZOOM_connection_error(link, &error, &addinfo)))
{
yaz_log(YLOG_LOG, "Error %s from %s",
client_set_diagnostic(cl, err);
client_set_state(cl, Client_Error);
}
client_set_diagnostic(cl, err);
client_set_state(cl, Client_Error);
}
- yaz_log(YLOG_WARN, "%p connect timeout %s", co, client_get_url(cl));
+ yaz_log(YLOG_WARN, "%p connect timeout %s", co, client_get_id(cl));
client_set_state(cl, Client_Error);
remove_connection_from_host(co);
client_set_state(cl, Client_Error);
remove_connection_from_host(co);
- yaz_log(YLOG_LOG, "%p Connection idle timeout %s", co, client_get_url(cl));
+ yaz_log(YLOG_LOG, "%p Connection idle timeout %s", co, client_get_id(cl));
host = find_host(client_get_session(cl)->service->server->database_hosts,
url);
yaz_log(YLOG_DEBUG, "client_prep_connection: target=%s url=%s",
host = find_host(client_get_session(cl)->service->server->database_hosts,
url);
yaz_log(YLOG_DEBUG, "client_prep_connection: target=%s url=%s",
num_connections, max_connections);
if (yaz_cond_wait(host->cond_ready, host->mutex, abstime))
{
num_connections, max_connections);
if (yaz_cond_wait(host->cond_ready, host->mutex, abstime))
{
client_set_state(cl, Client_Error);
yaz_mutex_leave(host->mutex);
return 0;
client_set_state(cl, Client_Error);
yaz_mutex_leave(host->mutex);
return 0;