X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fseshigh.c;h=92627c26a0e5c9fd716f5bc7748ef255446f4e7b;hp=c2311bbc4d88310c975e9dc3070fc8a9515ca006;hb=2715f6522ca62ab5dbc886c21ed18945743216f0;hpb=59aa88eb085c71e191802510804588a4f9edbe9b diff --git a/src/seshigh.c b/src/seshigh.c index c2311bb..92627c2 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 */ @@ -786,7 +788,7 @@ static int cql2pqf(ODR odr, const char *cql, cql_transform_t ct, if (r == 0) { if (*out) - yaz_log (log_requestdetail, "srw_sortKeys '%s'", out); + yaz_log(log_requestdetail, "srw_sortKeys '%s'", out); *sortkeys_p = odr_strdup(odr, out); } else @@ -2614,7 +2616,7 @@ static Z_APDU *process_searchRequest(association *assoc, request *reqb) bsrr->extra_args = 0; bsrr->extra_response_data = 0; - yaz_log (log_requestdetail, "ResultSet '%s'", req->resultSetName); + yaz_log(log_requestdetail, "ResultSet '%s'", req->resultSetName); if (req->databaseNames) { int i;