-/* $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
* 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 $';
* 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) {