Skip to content

Set TCP_NODELAY in all drivers #3998

Closed
Closed

Description

@danielmewes

At least in the Python driver we're not currently setting this.
This can cause Nagle's algorithm to kick in and make certain sequences of noreply and regular queries very very slow.

I'm working on a fix.
I think we should include it for 2.0.

(this showed up while experimenting with @peterbe's benchmark)

Activity

  1. self-assigned this
    on Mar 31, 2015
  2. added this to the 2.0 milestone on Mar 31, 2015
  3. danielmewes commented on Mar 31, 2015

    @danielmewes
    MemberAuthor

    We did already disable it in the JS driver, but not in Python nor Ruby.

  4. added a commit that references this issue on Mar 31, 2015
    86f9120
  5. danielmewes commented on Mar 31, 2015

    @danielmewes
    MemberAuthor

    In CR 2759 by @Tryneus

  6. mlucy commented on Apr 1, 2015

    @mlucy
    Member

    @danielmewes -- this issue says "all drivers", what's the state of Ruby?

  7. danielmewes commented on Apr 1, 2015

    @danielmewes
    MemberAuthor

    @mlucy That's also fixed by the commit. Sorry, should have added you as an observer or 2nd reviewer. Does it look reasonable?

  8. mlucy commented on Apr 1, 2015

    @mlucy
    Member

    @danielmewes -- yeah, looks good to me.

  9. peterbe commented on Apr 1, 2015

    @peterbe

    As a noob to this community, when will I see this in a pypi release? I'm eager to re-attempt above-mentioned benchmarks.

  10. danielmewes commented on Apr 1, 2015

    @danielmewes
    MemberAuthor

    @peterbe It will ship with RethinkDB 2.0 in about two weeks.
    Whether it makes a difference or not will depend on the exact timing of the tests. On my machine it improved things with noreply=True very very considerably, but that might not always be the case.

  11. added a commit that references this issue on Aug 7, 2026
    b73c548
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions