From: Adam Dickmeiss Date: Wed, 25 Jul 2007 13:27:06 +0000 (+0000) Subject: Fixed bug #1319: Pazpar2 goes to infinite loop.. Seems resolver related. X-Git-Tag: PAZPAR2.1.0.2~32 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=3677728f894c7296cbad739187c2991d00874479;p=pazpar2-moved-to-github.git Fixed bug #1319: Pazpar2 goes to infinite loop.. Seems resolver related. Routine connect_resolver_host had a brain-damaged loop structure. --- diff --git a/src/connection.c b/src/connection.c index e079eae..fe86766 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1,4 +1,4 @@ -/* $Id: connection.c,v 1.8 2007-07-25 11:41:32 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. @@ -289,20 +289,25 @@ void connect_resolver_host(struct host *host) 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; } }