From: Matthew Mondor Date: Wed, 17 Jan 2007 17:03:03 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: pgsql-branch-merge~17 X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=b8a67ca8d45910ef966dcf882459b5df82e00dcc;p=mmondor.git *** empty log message *** --- diff --git a/mmsoftware/js/js-sh/app/httpd/httpd.js b/mmsoftware/js/js-sh/app/httpd/httpd.js index 343135a..336777a 100644 --- a/mmsoftware/js/js-sh/app/httpd/httpd.js +++ b/mmsoftware/js/js-sh/app/httpd/httpd.js @@ -1,4 +1,4 @@ -/* $Id: httpd.js,v 1.50 2007/01/17 16:43:47 mmondor Exp $ */ +/* $Id: httpd.js,v 1.51 2007/01/17 17:03:03 mmondor Exp $ */ /* * Copyright (c) 2005-2006, Matthew Mondor @@ -82,7 +82,7 @@ * Server identification */ const SERVER_VERSION = 'mmondor_js_httpd/0.2.1 (NetBSD)'; -const SERVER_CVSID = '$Id: httpd.js,v 1.50 2007/01/17 16:43:47 mmondor Exp $'; +const SERVER_CVSID = '$Id: httpd.js,v 1.51 2007/01/17 17:03:03 mmondor Exp $'; @@ -1897,7 +1897,11 @@ function main() { * Request timeout expired for this * descriptor, we must close it. */ - fd.close(); + Syslog.log(Syslog.LOG_NOTICE, + '- Closing expired FD'); + try { + fd.close(); + } catch (x) {} climits.remove(fd); pollset.remove(fd); continue; @@ -2031,7 +2035,9 @@ function main() { Syslog.log(Syslog.LOG_NOTICE, '* ' + x + ' at accept(2)'); - fd.close(); + try { + fd.close(); + } catch (x) {} } } continue;