From: Adam Dickmeiss Date: Thu, 11 Aug 2011 08:33:38 +0000 (+0200) Subject: GFS: close connection immediately if EOF is received. X-Git-Tag: v4.2.8~5 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=12024d4ca595416375e534b44f2465543f1c0fa3;ds=sidebyside GFS: close connection immediately if EOF is received. Previously the assocation was marked DEAD and that could lead to a few seconds hang on SSL connections. --- diff --git a/src/seshigh.c b/src/seshigh.c index c2311bb..be9c54c 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -298,7 +298,9 @@ int ir_read(IOCHAN h, int event) else if (res <= 0) { yaz_log(log_session, "Connection closed by client"); - assoc->state = ASSOC_DEAD; + cs_close(conn); + destroy_association(assoc); + iochan_destroy(h); return 0; } else if (res == 1) /* incomplete read - wait for more */