Skip to content

Setting TCP_NODELAY on macOS sometimes fails #70

Description

@pquentin

As you know we're using Thespian in Rally, and while we're using it on Linux in production, multiple developers use macOS and we realized recently that one of our integration was hanging on macOS because it was stuck in the actor system. It currently reproduces 100% of the time for one developer on both ARM and x86, but we don't have a clean reproducer that does not involve Rally: elastic/rally#1575.

What happens is that the code to disable Nagle's algorithm occasionally fails with an OSError. Apparently macOS forbids setting TCP_NODELAY during socket shutdown. Various projects have run into that issue, including the Envoy proxy: envoyproxy/envoy#1446.

It was difficult to see this issue as the error is only logged, not propagated, and this just caused the actor system to hang.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions