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.
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.