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

Disable Nagle's algorithm in client sockets #104

Merged
merged 1 commit into from
Apr 20, 2017

Conversation

dobrakmato
Copy link
Contributor

Nagle's algorithm causes messages to be delivered in batches, which causes performance problems in latency critical applications (for example games).

Nagle's algorithm is turned off be default for WebSocket connections in all major browsers. Many other WebSocket libraries use TCP_NODELAY also.

References:
https://bugs.webkit.org/show_bug.cgi?id=102079
https://groups.google.com/forum/#!topic/native-client-discuss/T8zdrMjiTAE
websockets/ws#791

@dominics dominics merged commit 9cf3f86 into varspool:master Apr 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants