diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-30 16:58:09 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-30 16:58:09 -0800 |
commit | b95f5b70b0e964ba27679a4aeaf9b5764dca07aa (patch) | |
tree | 140c2e6ce1233cab46acda4fb73b7ca4f77b931d /src/library.js | |
parent | 3370e11ac457261f0d0986cafe7f6a07a4defb25 (diff) | |
parent | 001806e94750f1f413d7d58aa63cf98f2482c008 (diff) |
Merge pull request #807 from caiiiycuk/websocket__1
Fix '-1' problem in recv
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index 7d0012a8..53fc8617 100644 --- a/src/library.js +++ b/src/library.js @@ -7027,7 +7027,7 @@ LibraryManager.library = { if (!info) return -1; if (info.inQueue.length == 0) { ___setErrNo(ERRNO_CODES.EAGAIN); // no data, and all sockets are nonblocking, so this is the right behavior - return 0; // should this be -1 like the spec says? + return -1; } var buffer = info.inQueue.shift(); #if SOCKET_DEBUG |