Call cs_rcvconnect during redirect YAZ-754
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 8 Apr 2014 19:46:13 +0000 (21:46 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 8 Apr 2014 19:46:13 +0000 (21:46 +0200)
This is ensure that non-blocking getaddrinfo completes.

src/zoom-c.c

index d2b2be9..37b87f9 100644 (file)
@@ -1563,6 +1563,7 @@ static void handle_http(ZOOM_connection c, Z_HTTP_Response *hres)
                                           location, &host_change);
             if (do_connect_host(c, location) == zoom_complete)
                 return;  /* connect failed.. */
+            cs_rcvconnect(c->cs);
             send_HTTP_redirect(c, location);
             return;
         }