forked from esl/lhttpc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt at fixing a possible process leak
Yoshihiro Tanaka found that when lhttpc:request closes a worker due to a timeout, it's possible that it happens after the port is unlinked in prim_inet:close, but before it is properly closed. This results in orphaned sockets/ports being left hanging in the ether. This fix attempts to wrap lhttpc_sock:close commands around a safe build that should resolve it. A potential fix would have been to have the manager monitor the sockets itself, but this wouldn't have worked if the socket is new and the manager has never seen it before, hence the current fix.
- Loading branch information
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters