Commit Graph

118 Commits

Author SHA1 Message Date
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
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
Arnout Kazemier
52d7c53e46 Updated the flash socket with error detection, and readystate detection.
This is needed because when a error occures we close down the connection,
and the stream will become unwriteable.
Also changed to a single write instead of multiple writes.
2010-10-06 10:00:07 +02:00
Guillermo Rauch
999eba68dc Moved error handling to onConnect to avoid messing with the http.Server global error handlers
Do special error handling for websocket
2010-10-04 16:48:54 -03:00
Guillermo Rauch
af81e0ca52 Merge branch 'master' of git://github.com/3rd-Eden/Socket.IO-node 2010-10-04 16:43:20 -03:00
Guillermo Rauch
6f37628b4f Clearing heartbeat interval upon closing the connection
Commenting client serving test (made the tests hang)
Make sure to close the netserver if all listeners http servers are closed
2010-10-04 16:41:48 -03:00
Arnout Kazemier
e2bb868ed2 Added error listeners, if theses errors are not correcly caught, they will leak memory.
This caused http://speedo.no.de/ to go up from 1mb per connection after a ECONNECTRESET message
2010-10-04 21:21:53 +02:00
Arnout Kazemier
eeab2fd153 Sometimes the listener.options is not available, and creates uncaught exception.
This small if statement solves it.
2010-10-04 21:10:02 +02:00
Guillermo Rauch
30f0521461 Adapting websocket client api to ev.data
Closing as opposed to disconnecting when websocket errors out
2010-10-03 18:44:17 -03:00
Guillermo Rauch
0dd9cc3ada _decode and _encode moved to utils
Removed accidental 1==2 for serving the not modified status code for the client
Finished websocket test
2010-10-03 18:19:21 -03:00
Guillermo Rauch
b5deea4855 Converted tabs into spaces
Typo fix in flash socket warning message
2010-10-03 15:39:24 -03:00
Guillermo Rauch
96603825d1 Merge branch 'master' of git://github.com/maccman/Socket.IO-node 2010-10-01 11:24:08 -03:00
slnpacifist
1907b41637 returned data.length in listener.js since data is of type buffer 2010-09-29 19:58:55 +07:00
slnpacifist
d2ead47fca added encode=UTF-8 in jsonp-polling.js and xhr-polling.js since UTF-8 is the default encoding for http.ServerResponse.write
replaced string.length with Buffer.byteLength in jsonp-polling.js, listener.js and xhr-polling.js because content-length header requires number of bytes and not the number of symbols in string
2010-09-28 17:28:31 +07:00
Alex MacCaw
607fe38952 Fix COR headers/requests for different ports on Safari. 2010-09-27 06:46:19 -07:00
Alex MacCaw
fcba035330 Fix COR headers/requests for different ports on Safari. 2010-09-27 06:45:53 -07:00
Guillermo Rauch
c1e08318ca Clearing the references to request, response and connection upon disconnect. 2010-09-26 16:29:51 +02:00
Guillermo Rauch
880fb2b71d Updated client
[ocd] fix
2010-09-20 16:26:52 -07:00
Arnout Kazemier
c6b176555e Every require is blocking and requiring the sys module over and over and over again just makes no sense + it hurt performance.. Not to mention.. that it's already included. 2010-09-17 14:52:57 -07:00
Arnout Kazemier
a387982289 When an error occurs during the connection we should disconnect 2010-09-17 13:51:25 -07:00
Arnout Kazemier
fac2498f1f The listen method doesn't return a netserver instance, so the server onclose netserver.close will fail because netserver will be undefined. 2010-09-17 13:50:06 -07:00
Guillermo Rauch
61f4e27029 Socket.IO-node now serves the client out of the box for easier implementation
Memory caching and ETag support for static files
Tests
Simplified demo even further thanks to new static file serving
2010-09-09 17:54:25 -07:00
mgc
4b75668511 Failing to pass an origin header would throw an exception and crash the server. Added some handling. 2010-09-04 04:50:44 -04:00
Guillermo Rauch
d0415723ff .connected renamed to ._open, and adopted proper connected (fixes #41)
example/client updated to latest socket.io client
2010-09-05 16:49:18 -07:00
Guillermo Rauch
61e76db16c Better checking of WebSocket connections 2010-09-03 11:47:31 -07:00
Guillermo Rauch
701c35d952 Fix for certain buggy clients. Needs more investigation. Thanks Malte Ubl (@cramforce) for the report. Fixes #44 2010-09-03 11:28:23 -07:00
Guillermo Rauch
d920f8e64a Merge branch 'master' of git://github.com/aheckmann/Socket.IO-node 2010-09-01 01:31:39 -07:00
Guillermo Rauch
5279b13f54 Better handling of SSL location (thanks @jdub) 2010-09-01 01:26:23 -07:00
Aaron Heckmann
831c293b0c cache the length property 2010-09-01 01:07:24 -04:00
Guillermo Rauch
691de0ed7f Fix for cross-domain websocket (fixes #42) 2010-08-31 15:26:56 -07:00
Guillermo Rauch
c9ec8e27d2 Updated docs
Added clientsIndex reference for BC
2010-08-31 14:36:05 -07:00
Guillermo Rauch
ab623c341b Added sweet error message when trying to use flashsocket without root privileges (thanks @wink for inspiration)
Removed clients/clientsIndex and only using the index (fixes #28)
2010-08-31 14:26:02 -07:00
Guillermo Rauch
c023fae2e2 Updated client
Fixed WebSocket location header for ws/wss (Thanks @jdub, Fixes #40)
2010-08-30 19:00:52 -07:00
Guillermo Rauch
39bc1755d8 end was being fired before the connection had really ended in MobileSafari (fixes #29 and potentially creationix issue) 2010-08-30 18:13:26 -07:00