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

index b62da33..b6dcc3b 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: httpd.js,v 1.52 2007/01/17 17:16:20 mmondor Exp $ */
+/* $Id: httpd.js,v 1.53 2007/01/25 17:47:44 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.52 2007/01/17 17:16:20 mmondor Exp $';
+const SERVER_CVSID = '$Id: httpd.js,v 1.53 2007/01/25 17:47:44 mmondor Exp $';
 
 
 
@@ -2022,7 +2022,9 @@ function main() {
                                    'Your browser has exceeded its maximum ' +
                                    'allowed number of concurrent ' +
                                    'connections.');
-                                               fd.close();
+                                               try {
+                                                       fd.close();
+                                               } catch (x) {}
                                                continue;
                                        }
                                        /*
@@ -2035,9 +2037,7 @@ function main() {
                                                Syslog.log(Syslog.LOG_NOTICE,
                                                    '* ' + x +
                                                    ' at accept(2)');
-                                               try {
-                                                       fd.close();
-                                               } catch (x) {}
+                                               /* No need to close fd */
                                        }
                                }
                                continue;