Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix socket leak #8
After running for a while (and thrashing connections doing a live-update thing), connections began to fail like this:
[debug] accept() failed: 24
$ lsof -p 10680
My fix just checks connection->socket is still valid rather than the WB_ALIVE flag, which fixes the issue above.
(WebbyServerShutdown tears down sockets without doing any checking - maybe that should check socket != WB_INVALID_SOCKET too?)