From: Adam Dickmeiss Date: Thu, 24 Sep 2009 07:40:53 +0000 (+0200) Subject: Fix connect timeout problem on Solaris. X-Git-Tag: v1.2.1~19 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=3123b48786d777f60276d7011b974a0977698b32;p=pazpar2-moved-to-github.git Fix connect timeout problem on Solaris. This problem was seen on Solaris but could happen anywhere. Pazpar2 did not detect that Connection was established. And consequently did not change timeout from 'Z39.50 connect timeout' to 'Z39.50 session timeout'. Since The former is only 15 seconds by default a slow search would be aborted when it shouldn't. This commit removes a call to ZOOM_connection_process which, on Solaris, would grab one or more events out, so that Pazpar2 was not informed. --- diff --git a/src/connection.c b/src/connection.c index 5a28a75..cda779c 100644 --- a/src/connection.c +++ b/src/connection.c @@ -398,8 +398,6 @@ static int connection_connect(struct connection *con) /* this fragment is bad DRY: from client_prep_connection */ client_set_state(con->client, Client_Connecting); ZOOM_options_destroy(zoptions); - // This creates the connection - ZOOM_connection_process(link); return 0; }