Don't reuse connection if client is busy
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 21 Dec 2011 14:43:37 +0000 (15:43 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 21 Dec 2011 14:43:37 +0000 (15:43 +0100)
Might resolve bug 4972.

src/connection.c

index 9eac1a9..823595c 100644 (file)
@@ -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 
         {