Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TCP engine: Fix a race condition related to con lifetime management
Connections which received a read event concurrently with their expiration time could trigger an indefinitely long, CPU wasteful, rapid succession of back-forth passing of the connection object between TCP Main and a TCP worker process. The fix involves adding a TCP connection lifetime update in the TCP worker just after receiving the connection object from TCP Main (this is correct - there is some pending data, the connection is non-idle), before the expiration check is done. Thanks to Bogdan for helping with troubleshooting (cherry picked from commit 9918171)
- Loading branch information