X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=server%2Fseshigh.c;h=be46c572c27825906e7adaebc03eab3f8959d545;hp=68114022c130ed9f74d82b20ae0a86be72b317e8;hb=ccdaf5d5cd52555eefe9b22ea4bee98203e33626;hpb=1db60f5a7396b9b37560f6b6962be0b68240486c diff --git a/server/seshigh.c b/server/seshigh.c index 6811402..be46c57 100644 --- a/server/seshigh.c +++ b/server/seshigh.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: seshigh.c,v $ - * Revision 1.35 1995-06-15 07:45:14 quinn + * Revision 1.36 1995-06-16 10:31:36 quinn + * Added session timeout. + * + * Revision 1.35 1995/06/15 07:45:14 quinn * Moving to v3. * * Revision 1.34 1995/06/14 15:26:46 quinn @@ -277,6 +280,14 @@ void ir_session(IOCHAN h, int event) request *req; assert(h && conn && assoc); + if (event == EVENT_TIMEOUT) + { + logf(LOG_LOG, "Timeout - closing connection."); + cs_close(conn); + destroy_association(assoc); + iochan_destroy(h); + return; + } if (event & EVENT_INPUT || event & EVENT_WORK) /* input */ { if (event & EVENT_INPUT)