X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fconnection.c;h=72c12605734e19d6198c13df2ce140dbe76da9c6;hb=7cb62ced95e780a2069cec1046fa6713740e43c4;hp=fecf51b9fd7f4a04278ae7f5e32f64cdfb1704d9;hpb=e94bb57662a692dd4c0502dfb4569bfa8b811d03;p=pazpar2-moved-to-github.git diff --git a/src/connection.c b/src/connection.c index fecf51b..72c1260 100644 --- a/src/connection.c +++ b/src/connection.c @@ -475,6 +475,9 @@ int client_prep_connection(struct client *cl, connection_release(co); client_set_connection(cl, co); co->client = cl; + /* ensure that connection is only assigned to this client + by marking the client non Idle */ + client_set_state(cl, Client_Working); yaz_mutex_leave(host->mutex); co->operation_timeout = operation_timeout; co->session_timeout = session_timeout;