From: Adam Dickmeiss Date: Wed, 21 Dec 2011 14:43:37 +0000 (+0100) Subject: Don't reuse connection if client is busy X-Git-Tag: v1.6.7~13 X-Git-Url: http://git.indexdata.com/?p=pazpar2-moved-to-github.git;a=commitdiff_plain;h=7806b00d56481cb8b3ce8d6ce8217627a175a604 Don't reuse connection if client is busy Might resolve bug 4972. --- diff --git a/src/connection.c b/src/connection.c index 9eac1a9..823595c 100644 --- a/src/connection.c +++ b/src/connection.c @@ -524,7 +524,7 @@ int client_prep_connection(struct client *cl, if (co) { assert(co->host); - if (co->host == host) + if (co->host == host && client_get_state(cl) == Client_Idle) ; /* reusing connection. It's ours! */ else {