X-Git-Url: http://git.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fconnection.c;h=a8c9f207202080ce6362805f0768e50141144080;hb=eed30a5461c8c61a88582b69af6ff735839646b4;hp=149709a677cb5d239044a5a3ab74b519c828dca0;hpb=2058959fc0a6888b55f23586cd3f1d173b2a46b5;p=pazpar2-moved-to-github.git diff --git a/src/connection.c b/src/connection.c index 149709a..a8c9f20 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1,4 +1,4 @@ -/* $Id: connection.c,v 1.11 2007-08-28 21:11:21 quinn Exp $ +/* $Id: connection.c,v 1.12 2007-09-20 08:13:27 adam Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -261,7 +261,7 @@ static void connection_handler(IOCHAN i, int event) else // we throw away response and go to idle mode { yaz_log(YLOG_DEBUG, "Ignoring result of expired operation"); - client_set_state(cl, Client_Idle); + client_set_state(cl, Client_Continue); } } /* if len==1 we do nothing but wait for more input */ @@ -477,8 +477,9 @@ int client_prep_connection(struct client *cl) else if (co->state == Conn_Open) { if (client_get_state(cl) == Client_Error - || client_get_state(cl) == Client_Disconnected) - client_set_state(cl, Client_Idle); + || client_get_state(cl) == Client_Disconnected + || client_get_state(cl) == Client_Idle) + client_set_state(cl, Client_Continue); iochan_setflag(co->iochan, EVENT_OUTPUT); } return 1;