X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fseshigh.c;h=6aa2fe09831dfbfa13627f5adac5e214d53fbaf5;hp=92627c26a0e5c9fd716f5bc7748ef255446f4e7b;hb=abe46958ffd48a2af09b9f7753f89342e31fb1e1;hpb=c6e6b1fe0674de638fbc1ad44393baa251d4af6f diff --git a/src/seshigh.c b/src/seshigh.c index 92627c2..6aa2fe0 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -270,11 +270,10 @@ int ir_read(IOCHAN h, int event) if ((assoc->cs_put_mask & EVENT_INPUT) == 0 && (event & assoc->cs_get_mask)) { - yaz_log(YLOG_DEBUG, "ir_session (input)"); /* We aren't speaking to this fellow */ if (assoc->state == ASSOC_DEAD) { - yaz_log(log_sessiondetail, "Connection closed - end of session"); + yaz_log(log_session, "Connection closed - end of session"); cs_close(conn); destroy_association(assoc); iochan_destroy(h); @@ -297,10 +296,8 @@ int ir_read(IOCHAN h, int event) } else if (res <= 0) { + assoc->state = ASSOC_DEAD; yaz_log(log_session, "Connection closed by client"); - cs_close(conn); - destroy_association(assoc); - iochan_destroy(h); return 0; } else if (res == 1) /* incomplete read - wait for more */ @@ -447,7 +444,6 @@ void ir_session(IOCHAN h, int event) yaz_log(YLOG_DEBUG, "HTTP out:\n%.*s", req->len_response, req->response); #endif - nmem_destroy(req->request_mem); request_deq(&assoc->outgoing); request_release(req); if (!request_head(&assoc->outgoing))