From: Sebastian Hammer Date: Mon, 18 Dec 2006 16:29:57 +0000 (+0000) Subject: Destroy orphan connections on I/O. We could perhaps do better, to preserve X-Git-Tag: before.append.child~99 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=d6758d0d1eae0c2b0cf2f3ddecf87930b2868b68;p=pazpar2-moved-to-github.git Destroy orphan connections on I/O. We could perhaps do better, to preserve these connections, but then more state information must be moved to the connection level. Think about this. --- diff --git a/pazpar2.c b/pazpar2.c index 13b9b6c..d01a024 100644 --- a/pazpar2.c +++ b/pazpar2.c @@ -1,4 +1,4 @@ -/* $Id: pazpar2.c,v 1.15 2006-12-18 14:37:21 sondberg Exp $ */; +/* $Id: pazpar2.c,v 1.16 2006-12-18 16:29:57 quinn Exp $ */; #include #include @@ -713,6 +713,12 @@ static void handler(IOCHAN i, int event) if (cl) se = cl->session; + else + { + yaz_log(YLOG_WARN, "Destroying orphan connection (fix me?)"); + connection_destroy(co); + return; + } if (co->state == Conn_Connecting && event & EVENT_OUTPUT) {