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

Add an option to enable TCP_NODELAY #435

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Conversation

Patryk27
Copy link
Contributor

@Patryk27 Patryk27 commented Dec 30, 2024

This commit adds a new configuration option, nodelay - activating this option disables Nagle's algorithm for client sockets.

Motivation

While working on a game of mine I realized that the version deployed online seems to have a noticeable lag - it didn't took long to piece two and two, and realize that Nagle's at fault. I have confirmed that calling set_nodelay() solves the issue on my side.

@Eugeny
Copy link
Owner

Eugeny commented Jan 2, 2025

LGTM, thank you!

@Eugeny Eugeny merged commit 66f9416 into Eugeny:main Jan 2, 2025
6 of 7 checks passed
@Eugeny
Copy link
Owner

Eugeny commented Jan 2, 2025

@all-contributors add @Patryk27 for code

Copy link
Contributor

@Eugeny

I've put up a pull request to add @Patryk27! 🎉

@Patryk27 Patryk27 deleted the nodelay branch January 2, 2025 17:01
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.

2 participants