Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always send ChannelInputShutdownReadComplete in epoll (#14042)
Motivation: We were observing EpollSocketHalfClosedTest was occasionally failing. This appears to be because we were clearing EPOLLIN when we shouldn't, and prevent ourselves from getting the RDHUP where we send the ChannelInputShutdownReadComplete event. Modification: Predicate the `clearEpollIn0()` call on `shouldStopReading(config())`, so we continue to try reading when reads are queued. This allows us to get another RDHUP which we will turn into the read-complete event. Result: We no longer miss out on read-complete events from input shut down.
- Loading branch information