Guillermo Rauch
bdbb419f95
Invalid transport test completed
2010-10-28 23:14:38 -03:00
Guillermo Rauch
71c99bfb87
Initial stab at trying to detect invalid transport responses
...
Make sure to provide a default for `log` if no log key was provided (internal)
2010-10-28 05:40:30 -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
9be3daf908
Client serving ETag testing
2010-10-28 05:00:24 -03:00
Guillermo Rauch
8d0196683b
Added htmlfile transport tests
2010-10-28 04:12:57 -03:00
Guillermo Rauch
49f556e597
Added extra byte to IE iframe bytes padding
2010-10-28 04:12:29 -03:00
Guillermo Rauch
5caf5b8c75
JSONP Polling posts
2010-10-27 04:27:52 -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
1046e7275c
Listener broadcasting test (* sometimes hangs)
2010-10-25 03:55:43 -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
22bc8a6e34
Added listener tests
2010-10-25 03:26:41 -03:00
Guillermo Rauch
880eaa1047
Only utilize 7XXX ports across tests
2010-10-25 03:25:58 -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
7ea53b8bee
[websocket test] Fix sending message to client upon connecting
2010-10-24 18:59:59 -03:00
Guillermo Rauch
75a4705426
[websocket test] Fix for connection and handshake test
2010-10-24 17:15:06 -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
72497517d3
Fixed multipart heartbeat test
2010-10-24 15:17:02 -03:00
Guillermo Rauch
e66751f65a
Finished json encoding test
2010-10-24 15:11:49 -03:00
Guillermo Rauch
39a558ee3d
Look for the heartbeat in the decoded message
2010-10-24 14:57:20 -03:00
Guillermo Rauch
4eda3d374d
Refactored websocket transports tests to match polling/multipart helpers
...
Make sure to close client/server in heartbeat test
2010-10-24 14:54:11 -03:00
Guillermo Rauch
a65326e640
Added gitignore
...
Added coverage testing to Makefile
Added heartbeat test to multipart
2010-10-24 12:50:34 -03:00
Guillermo Rauch
3ecb37de17
Added buffered messages test for multipart
...
Added assertions for `connected` property for all the tests
2010-10-20 13:47:59 -03:00
Guillermo Rauch
6a6779697d
Multipart clients tracking test
2010-10-20 04:07:40 -03:00
Guillermo Rauch
6ad4df3f64
Multipart client>server message sending test
...
Make sure to only close the client stream when the roundtrip is complete
2010-10-20 04:02:25 -03:00
Guillermo Rauch
1defee7e6c
Multipart connection and handshake tests:
...
- Implemented HTTP client on top of net.Stream with multipart boundary parsing for testing
- Test for connection / server>client message sending
2010-10-20 03:48:09 -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
d624ef3ea8
Test for duration parameter
...
Close the server
2010-10-19 15:06:06 -03:00
Guillermo Rauch
25f597a9f8
Added make example to Makefile
...
Added clients tracking test for long polling
Added message buffering test for long polling
2010-10-19 14:18:34 -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
6712d71a2e
Replaced empty with null in log option
...
Comma first style for client serving tests
2010-10-18 18:05:32 -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
8b52e1f8ed
Long polling integration tests
...
- Utility functions
- Connection and handshake test
2010-10-17 21:29:19 -03:00
Guillermo Rauch
66a6e6d37e
Test for heartbeat message
2010-10-17 18:08:41 -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
36463a245e
Moved dependencies into support/ from tests/support
...
Adapted Makefile
2010-10-03 18:24:16 -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