Marcus Westin
cff4669d57
Log errors from closing the flash socket server
2011-02-14 19:54:00 -05:00
Guillermo Rauch
4b0a1f22c8
Release 0.6.10
2011-02-09 18:45:00 -08:00
Guillermo Rauch
d11ca00b49
Fixed; possible write errors when a connection error event fires
2011-02-09 18:41:13 -08:00
Guillermo Rauch
06445a0faa
Added comments and version number to socket.io/index
2011-02-06 09:33:40 -08:00
Guillermo Rauch
6fa8b1f051
Fixed Flash inline policy serving for Firefox 4
2011-02-05 11:40:14 -08:00
Guillermo Rauch
aa9f2596cb
Fixed issue with terminating connection twice
2011-01-10 01:48:05 -08:00
Guillermo Rauch
e2a97588ef
Removed unnecessary code
2011-01-09 19:07:11 -08:00
Guillermo Rauch
f99ac54df5
Fixed situation where the connection drops but the client can still autoreconnect
...
through a different socket. In this case we still want to clear the FD but not call
onDisconnect immediately.
2011-01-09 18:53:40 -08:00
Guillermo Rauch
ba70be4e0b
Note for Flash socket and inline policy on Firefox
...
Destroy the fds on disconnect
Restored 20 secs of polling so that node doesn't timeout the connections
2011-01-09 18:16:24 -08:00
Guillermo Rauch
71e77561bb
Make sure not to trigger multiple timeouts when closing
...
Important fix for polling transports.
2011-01-09 16:54:35 -08:00
Fabian Jakobs
7f08d8fd59
Don't destroy the connection in _onClose. Destroying
...
it will prevent the buffers from being flushed and
will result in corrupted responses for the
xhr-polling transport.
According to the node documentation "destroy" is
only necessary in case of a errors.
2011-01-05 13:25:35 +01:00
Mathew Rodley
ffb0574a76
Added try/catch block around JSON.parse and return an empty object literal
...
if JSON parsing fails.
2010-12-30 13:18:27 +11:00
Guillermo Rauch
715c46de13
Changed polling default duration to 50 seconds
2010-12-23 20:38:20 -08:00
Guillermo Rauch
eb0e1d3d2c
might > will
...
Adjusted to 85 column limit
2010-12-23 20:11:24 -08:00
Guillermo Rauch
28535071bb
Support for resources that include slashes. Thanks @schamane
2010-12-23 17:10:39 -08:00
Guillermo Rauch
45f1712d57
Lazy loading of transports. Thanks @technoweenie
...
Fixed README transports list
2010-12-23 16:52:51 -08:00
Guillermo Rauch
5c9fb03c50
Support for HAProxy load balancing (thanks Brian McKelvey)
...
Backported Parser from 0.7
2010-12-23 16:25:16 -08:00
Guillermo Rauch
c958a12c79
0.3 compatibility (thanks Arnout)
2010-12-23 15:08:06 -08:00
Guillermo Rauch
d298113a3e
Temporarily reverting to random session id generation
2010-12-23 14:48:41 -08:00
Guillermo Rauch
3c6fc999dc
client.broadcast now 300% faster
...
Cleaned up chat example
Implemented a simpler session id generation mechanism. Math.random is not webscale
2010-11-11 06:19:07 -03:00
Guillermo Rauch
d0369801a1
Restored global netserver for flashsocket
...
Now supporting `flashPolicyServer` option (thanks Arnout)
Tests passing with and without sudo/root user
Fixed noDelay/timeout/utf-8 for draft 76 (accidental typo)
2010-11-08 18:55:27 -03:00
Guillermo Rauch
e51b37da92
Merge branch 'master' of git://github.com/3rd-Eden/Socket.IO-node
2010-11-08 17:37:32 -03:00
Arnout Kazemier
c7bec15fa9
Close the netServer when the main http server closes, this way the event loop does not keep running.
...
NOTE: this is patch for node 0.2.X, this is not required for node 0.3.X
2010-11-08 21:35:42 +01:00
Guillermo Rauch
4c60ed190d
Merge branch 'master' of git://github.com/3rd-Eden/Socket.IO-node
2010-11-08 17:28:19 -03:00
Arnout Kazemier
d959b96363
Fallback to try{}catch handling for node < 0.2.4 , node 0.3.X seems to capture the
...
errors correctly using the error event.
2010-11-08 21:25:20 +01:00
Guillermo Rauch
a9dc5e081b
Merge branch 'master' of git://github.com/3rd-Eden/Socket.IO-node
2010-11-08 17:17:57 -03:00
Arnout Kazemier
c168c89f1a
Added the flash policy server, it's enabled by default but can be turned off if needed.
...
Socket.io will automatically fallback to serving the policy file inline if server is disabled or
unable to start up.
2010-11-08 21:09:52 +01:00
Guillermo Rauch
be4c847692
Misc refactor
2010-11-02 01:13:04 -03:00
Guillermo Rauch
4240385f6f
Make sure to only write to open transports (thanks JohnDav)
2010-11-01 17:52:23 -03:00
Guillermo Rauch
22a93d06cb
Another bad onClose call
2010-11-01 17:47:05 -03:00
Guillermo Rauch
4ea687b57e
Ditto
2010-11-01 17:44:41 -03:00
Guillermo Rauch
227671d41d
_open is still false, so destroy the connection immediately upon websocket error
2010-11-01 17:43:24 -03:00
Guillermo Rauch
7bf4ae1f05
Make sure .connection is not null on 'end'
2010-11-01 17:27:14 -03:00
Guillermo Rauch
b28d4288d5
Proper fix for invalid websocket key
2010-11-01 17:22:43 -03:00
Guillermo Rauch
054e818bd9
Fix spooky bug
2010-11-01 17:20:23 -03:00
Guillermo Rauch
426795395c
Call onclose after destroying the connection
2010-11-01 17:10:13 -03:00
Guillermo Rauch
1002105f7a
added onClose skipDisconnect flag
2010-11-01 16:34:37 -03:00
Guillermo Rauch
8f4f82a413
onClose call
2010-11-01 15:35:52 -03:00
Guillermo Rauch
e1745e20ac
Make sure to disconnect directly onClose if the client is not handshaked and he can't possibly reconnect
2010-11-01 15:35:06 -03:00
Guillermo Rauch
681f004fe9
Make sure to clear the FD on end
2010-11-01 15:01:24 -03:00
Guillermo Rauch
f66b66f667
Make sure to destroy the FD for invalid session ids
2010-10-31 16:14:31 -03:00
Guillermo Rauch
51c43400bf
Moved setTimeout/noDelay disabling to connection event. This disables the timeout for all the sockets in the server, but it seems to only work from here.
...
Removed .draft var
2010-10-31 15:48:51 -03:00
Guillermo Rauch
8323a43480
Client#broadcast test
2010-10-30 19:45:19 -03:00
Guillermo Rauch
5bf9097b39
Disabled 843 server. Will move into utility so that people can set up server-wide policy, and it just doesn't depend on socket.io
2010-10-30 18:51:26 -03:00
Guillermo Rauch
aa6f30210c
More cleanup of flashsocket netserver
2010-10-30 17:44:30 -03:00
Guillermo Rauch
20383bd5c4
Cleaned up flashsocket netserver
2010-10-30 17:38:34 -03:00
Guillermo Rauch
9bc6c653c3
Make sure to end and destroy connection onDisconnect (for timeouts)
2010-10-30 15:47:19 -03:00
Guillermo Rauch
9b8fb373bf
Removed warning for inline flash policy (will add to docs)
2010-10-29 09:41:12 -03:00
Guillermo Rauch
89b18c01ae
Merge branch 'master' of git://github.com/kanaka/Socket.IO-node
2010-10-29 03:11:34 -03:00
Guillermo Rauch
4665f54b43
More consistent connection abortion in websocket transport
2010-10-28 23:19:31 -03:00