Commit Graph

57 Commits

Author SHA1 Message Date
Lal Jérémy
bbe3d95513 Socket.flush: reset writeBuffer before send
This prevents legacy node versions from calling Socket.flush before it
could reset writeBuffer, leading to double-flush.
2012-10-24 23:32:23 +03:00
Fedor Indutny
be7b4e7478 socket: reset ping timeout on incoming data 2012-10-16 23:39:57 +07:00
Guillermo Rauch
689644247c socket: added missing jsdoc (gross) 2012-10-11 12:43:36 -07:00
Joe Walnes
61d4c1a7b5 Slow upgrade should not take down server.
I noticed this on very heavily overloaded server - the typos raises an uncaught exception.
2012-10-10 16:44:37 -05:00
Guillermo Rauch
1c96ca4fe8 socket: improve check interval for upgrade 2012-10-08 15:41:13 -07:00
Guillermo Rauch
17c657957e socket: faster upgrades (we perform a check immediately) 2012-10-08 13:47:50 -07:00
cadorn
16650233d9 ping from client 2012-09-12 16:12:46 -07:00
cadorn
0b9f7809bc changes for #78 2012-09-12 13:17:48 -07:00
Guillermo Rauch
6b725eb349 Merge pull request #71 from afshinm/master
add `send` callback feature
2012-09-04 11:12:22 -07:00
Afshin Mehrabani
7f483042d4 styling problem 2012-08-25 22:04:58 +04:30
Afshin Mehrabani
7959e0a05b change in conditions 2012-08-25 21:58:14 +04:30
Afshin Mehrabani
175a3f003e fix styling problem 2012-08-25 21:52:34 +04:30
Afshin Mehrabani
1e3a0ef614 fix styling problem 2012-08-25 21:47:22 +04:30
Afshin Mehrabani
148a10209a Revert "fix style problem"
This reverts commit 514e728433.
2012-08-25 21:45:16 +04:30
Afshin Mehrabani
514e728433 fix style problem 2012-08-25 21:42:29 +04:30
Afshin Mehrabani
c81cf614e1 fix code style problems, remove unnecessary clearing 2012-08-25 21:09:21 +04:30
Afshin Mehrabani
8f4d6f9e13 remove unnecessary sequence id & drain emit parameter 2012-08-24 04:01:36 +04:30
Afshin Mehrabani
23004e8b6e fix code styling issues 2012-08-21 00:23:14 +04:30
Afshin Mehrabani
ab4393fbd8 fix indentation 2012-08-20 23:21:35 +04:30
Afshin Mehrabani
d5dff2dd62 change comment 2012-08-20 12:18:22 +04:30
Afshin Mehrabani
cb02a97d0c add sequence id, change websocket send function 2012-08-18 12:14:17 +04:30
Afshin Mehrabani
1434eaf78f add send callback tests + a little change in function 2012-08-15 22:27:03 +04:30
Afshin Mehrabani
634b11af71 add send callback
issue #57
2012-08-13 22:34:50 +04:30
Guillermo Rauch
b948f858fb socket: fix flush event parameter 2012-08-10 10:45:48 -07:00
Guillermo Rauch
271585189f socket: added flush/drain events (fixes #56) 2012-08-10 10:39:09 -07:00
Guillermo Rauch
73cf06cc34 Added accessor to transport handshake request 2012-07-03 14:17:17 -07:00
Guillermo Rauch
566acd1ffd socket: transfer sid to transport upon opening 2012-07-02 11:02:39 -07:00
Guillermo Rauch
82ec5a8bc9 socket: ignore transport errors from discarded transports (fixes #26) 2012-07-02 07:52:36 -07:00
Guillermo Rauch
00f9738292 socket: added polling cycle force for fast upgrade 2012-07-02 07:34:02 -07:00
Lal Jérémy
d1d35263b1 Socket.ping() should be idempotent, if not race conditions can appear and connection closes. 2012-02-22 15:13:01 +01:00
Lal Jérémy
b56354c84b Update lib/socket.js 2012-02-22 00:20:16 +01:00
einaros
89a30ec268 avoid suggesting upgrades which arent enabled on the server 2012-01-26 09:28:35 -08:00
Guillermo Rauch
e305e16ad7 Stopped sending interval to client. 2012-01-17 09:51:44 -08:00
Guillermo Rauch
cf57b9a01a Empty packet data translates into empty message. 2012-01-16 09:25:34 -08:00
Guillermo Rauch
86adb61f28 Ensured Socket#flush checks for buffer length. 2012-01-15 22:19:07 -08:00
Guillermo Rauch
04723dd50c Re-implemented maybeUpgrade to consider upgrade packet. 2012-01-15 22:18:34 -08:00
Guillermo Rauch
cb22f219d7 Renamed close readyState to closed. 2012-01-14 11:43:33 -08:00
Guillermo Rauch
5e9e167ed4 Fixed docs. 2012-01-14 09:35:07 -08:00
Guillermo Rauch
704312271b Added instrumentation to upgrade. 2012-01-14 09:34:57 -08:00
Guillermo Rauch
83c2711009 Implemented Socket buffering/flushing:
- Fires upon upgrade
- Fires when the transport is drained.
2012-01-14 09:34:29 -08:00
Guillermo Rauch
fba2a89b79 Implemented sendPacket API homologous to client API. 2012-01-14 09:34:03 -08:00
Guillermo Rauch
a2f498ac65 Started adding buffering to Socket. 2012-01-14 09:33:01 -08:00
Guillermo Rauch
45f5b2a113 Fixed debug namespace convention. 2012-01-13 15:32:28 -08:00
Guillermo Rauch
26e3d1c546 Added closing readyState. 2012-01-04 17:17:58 -08:00
Guillermo Rauch
001d80ac40 Fixed bind, I thought it took an array of arguments. 2012-01-04 13:52:05 -08:00
Guillermo Rauch
e4ee394dd5 Fixed; close packet is specific to xhr-polling transport 2012-01-04 13:41:23 -08:00
Guillermo Rauch
cf0550ac67 Added defenses for onClose and close. 2012-01-03 10:39:48 -08:00
Guillermo Rauch
cce20d5e16 Refactored rasons for close 2012-01-03 10:39:29 -08:00
Guillermo Rauch
10cfe1bf86 Refactored clearTransport 2012-01-03 10:39:07 -08:00
Guillermo Rauch
8407a97aac Refactored setTransport. 2012-01-03 10:38:40 -08:00