Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SO_LINGER option makes the close() system call block if there is any unfinished business on the socket, even if the socket is set to the non-blocking mode. Any blocking is at odds with Envoy's threading model, and we have seen non-zero Envoy watchdog mege miss metrics corroborated by Envoy trace logs indicating that a close system call was blocking for 10 seconds, exactly the time we had set for the SO_LINGER option. Fix this by removing the setting of the linger option. Signed-off-by: Jarno Rajahalme <[email protected]>
- Loading branch information