Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Calling close() does not interrupt Socket waiting in accept() on Linux #656
The following demonstrates the issue:
The thread calling join() on the thread that issued the accept() call will block because accept() is not interrupted by close().
Under MRI 1.9, rb_thread_wait_fd is called on the fd first and then accept() is called.