*** empty log message ***
authorMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 7 Jul 2005 21:15:57 +0000 (21:15 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 7 Jul 2005 21:15:57 +0000 (21:15 +0000)
tests/js-test/js/httpd/httpd.js

index ae76b7f..7824677 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: httpd.js,v 1.29 2005/07/07 20:55:53 mmondor Exp $ */
+/* $Id: httpd.js,v 1.30 2005/07/07 21:15:57 mmondor Exp $ */
 
 /*
  * Copyright (c) 2005, Matthew Mondor
@@ -90,7 +90,7 @@ eval(file_read('root.js'));           /* Root object for virtual chroot(2) */
  * Server identification
  */
 SERVER_VERSION                 = 'mmondor_js_httpd/0.0.1 (NetBSD)';
-SERVER_CVSID   = '$Id: httpd.js,v 1.29 2005/07/07 20:55:53 mmondor Exp $';
+SERVER_CVSID   = '$Id: httpd.js,v 1.30 2005/07/07 21:15:57 mmondor Exp $';
 
 
 
@@ -1285,7 +1285,10 @@ function main() {
                                                 * state and add FD to polling
                                                 * set
                                                 */
-                                               fd.init(cur, ++count);
+                                               if (++count > 999999)
+                                                       count = listen.length
+                                                          + 1;
+                                               fd.init(cur, count);
                                                set[count] = fd;
                                        }
                                } catch (x) {