From 87b9fe11e545049173d9fb251c403dbd87786490 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 2 Jan 2013 14:47:50 -0800 Subject: assert on socket fd size --- src/library.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/library.js b/src/library.js index 75a8a90a..bc8ae5bd 100644 --- a/src/library.js +++ b/src/library.js @@ -6801,6 +6801,7 @@ LibraryManager.library = { socket__deps: ['$Sockets'], socket: function(family, type, protocol) { var fd = Sockets.nextFd++; + assert(fd < 64); // select() assumes socket fd values are in 0..63 Sockets.fds[fd] = { connected: false }; -- cgit v1.2.3-18-g5258