Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow websocket connections behind HAProxy. #98

Closed
wants to merge 37 commits into from
Closed

Allow websocket connections behind HAProxy. #98

wants to merge 37 commits into from

Conversation

theturtle32
Copy link

Here's a much cleaner pull request. Sorry about all the noise in the previous one. It was applied against an older version of Socket.IO

This might not be the best way to approach the problem, but it was good enough to get things working for my purposes. The general approach is the one suggested by Willy Tarreau, the author of HAProxy.

rauchg and others added 30 commits November 11, 2010 11:40
Failing tests for new data decoding
.gitignore
 - Progressive data buffering support
 - Error reporting
 - Efficient, low memory footprint
 - Support for the new encoding
   - Message types
   - Termination character
Tests for decoder
Updated utils/utils tests.
Message encoding function + tests
Message decoding function started
Fixed message type index for regular messages
_onMessage added as callback to the decoder
Added proper message type handling
Implemented _onData in the transports
Refactored Client#_payload to make sure the sessionid message (3) is sent
Fixed _queue to work with message type and data arguments
data#encode was failing to compute length for non-string values.
Fixed encode() test utility
Added `tests` utility with common testing globals
Refactored htmlfile tests to use the new utilities
Refactores websocket tests to use the new utilities
Cleaned up flash socket tests
Make sure to test for msg value (index 0) in listener.js decode() callbacks
Deprecated .clientsIndex and clientConnect/clientDisconnect/clientMessage events
Added annotations support to broadcast
Added Realm class
Make sure to proxy the `realm` method from the Realm to the Listener
Removed monkey-patching in favor of RealmClient class. Prevents race conditions
RealmClient Client override added for Realm
Fixed Listener#realm
Various other fixes
Fixed syntax style in JSONP Polling transport
Fixed flashsocket syntax for 85 columns
@rauchg
Copy link
Contributor

rauchg commented Dec 24, 2010

Applied in 5c9fb03 thanks!

@theturtle32
Copy link
Author

Awesome, thanks!!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants