#1355 server_epoll: Sometimes takes very long to shut down
What steps will reproduce the problem?
1. Start prosody with server_epoll
2. Open some connections
3. Shut down (ie ^C)
What is the expected output?
Shuts down after closing all connections
What do you see instead?
Stalls in shutdown
What version of the product are you using?
Please provide any additional information below.
I randomly stumbled upon this at some point and determined that it was not setting a timeout for some states of a connection, leaving it to wait until a timeout occurs in the kernel/tcp system.