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
Guillermo Rauch
148aa74a29
Removed unnecessary check for this.connection (since we now access the socket through req.connection for all transports)
...
Started on multipart tests
2010-10-19 15:33:57 -03:00
Guillermo Rauch
c365c601f0
Improve this.request/this.response/this.connection
...
Add 'end' listener onConnect, applies to all transports
Improved error handling onConnect
Remove legacy `flush` calls
Removed unnecessary closeTimeout clearing in jsonp polling
2010-10-18 20:13:57 -03:00
Guillermo Rauch
f0e5643533
Fix for this.connection
...
Clean up in websocket transport
2010-10-18 19:17:08 -03:00
Guillermo Rauch
7fbb069eaa
Make sure to close on disconnect if _open = true
...
Clear disconnection timeout on disconnection (double check)
Make sure to clear closeTimeout for polling transports on close.
2010-10-18 18:15:55 -03:00
Guillermo Rauch
57e9b41102
Corrected options overriding order
2010-10-18 17:10:39 -03:00
Guillermo Rauch
080e8944a3
Re-enabled serving static files test
...
Changed handling of options so that polling defaults are in the respective transports
Switched to comma-first style
2010-10-18 17:05:19 -03:00
Guillermo Rauch
464a1c6448
Added heartbeat timeout test
...
Support for listener#log false
2010-10-17 18:06:53 -03:00
Guillermo Rauch
18a0b99282
Corrected onConnect signature to support a request and a socket, or a request and a response.
...
Removed error checking for non-upgradeable sockets, since they'll be destroyed, and error handling is done onConnect
Added tests for websocket client tracking
Added tests for websocket message buffering
Make sure disconnect timeout is cleared on websocket re-connect
2010-10-17 05:41:29 -03:00