*** empty log message ***
authorMatthew Mondor <mmondor@pulsar-zone.net>
Wed, 17 Jan 2007 17:03:03 +0000 (17:03 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Wed, 17 Jan 2007 17:03:03 +0000 (17:03 +0000)
mmsoftware/js/js-sh/app/httpd/httpd.js

index 343135a..336777a 100644 (file)
@@ -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;