Skip to content
This repository was archived by the owner on Nov 8, 2020. It is now read-only.

Set TCP_NODELAY on the RethinkDB connection to avoid Nagle's algorithm delay#15

Open
ddfisher wants to merge 1 commit intonpiv:masterfrom
dropbox:fix_nagle_delay
Open

Set TCP_NODELAY on the RethinkDB connection to avoid Nagle's algorithm delay#15
ddfisher wants to merge 1 commit intonpiv:masterfrom
dropbox:fix_nagle_delay

Conversation

@ddfisher
Copy link

We were seeing simple local gets (which should have taken ~1ms according to the query profiler) take ~40ms with this driver. @danielmewes suggested setting TCP_NODELAY on the SocketChannel to avoid delays caused by Nagle's algorithm. This fixed our problem.

This fix should be strictly positive for response times.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant