Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes a race between upstream_thread and sending a request. It's possible that a request is injected via `created_accepted` before the socket pair in `upstream_thread` is created. If that request causes h2o to close the connection, and the socketpair is created in the interm, it's possible that the socketpair gets the same fd number as the closed request. This means that the `is_valid_fd` test down the line doesn't fail, resulting in a timeout.
- Loading branch information