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
Guillermo Rauch
41ea4dbac6
Simplified error handling in client serving
2010-10-28 23:16:11 -03:00
Guillermo Rauch
bdbb419f95
Invalid transport test completed
2010-10-28 23:14:38 -03:00
Guillermo Rauch
bd654b74d4
Removed unnecessary file extension verification when serving the client
2010-10-28 05:23:32 -03:00
Guillermo Rauch
f6c2353066
Removed unnecessary Client check upon connection
...
Added support for /socket.io/WebSocketMain.swf
Added test for /socket.io/WebSocketMain.swf
2010-10-28 05:17:18 -03:00
Guillermo Rauch
49f556e597
Added extra byte to IE iframe bytes padding
2010-10-28 04:12:29 -03:00
Guillermo Rauch
85ad36e4dc
Invalid session id test
...
Potenital fix for timeout assertion uncaught exception
2010-10-27 03:25:13 -03:00
Guillermo Rauch
6194b84b7d
end() before destroy()ing the socket for non-WebSocket or non-valid Upgrade requests
2010-10-25 03:27:30 -03:00
Guillermo Rauch
22df0e8191
Added test for non-socket.io requests
...
Simplified index.js tests
Moved listener tests into listener.js
2010-10-25 02:59:25 -03:00
Guillermo Rauch
8b483789fe
Make sure to call .end() when listening on connection 'end' event
...
Make sure the file descriptor is destroyed on disconnection
Fix for websocket client tracking test
2010-10-24 20:31:18 -03:00
Joel Martin
25f1839923
Inline (same port) flash socket policy request.
...
If the server is not run with root privileges, then the flashsocket
transport will instead listen to all new connections on the main port
for policy requests.
Flash policy requests happen to both port 843 and
the destination port:
http://www.lightsphere.com/dev/articles/flash_socket_policy.html
2010-10-24 17:38:33 -05:00
Guillermo Rauch
4283ee3b8f
[client files serving] Leverage end() write() call
2010-10-24 15:30:52 -03:00
Guillermo Rauch
3f97777749
[client serving] Make sure to not do a useless file lookup when file is cached
2010-10-24 15:29:56 -03:00