Skip Menu |

This queue is for tickets about the POE-Component-Server-HTTP CPAN distribution.

Report information
The Basics
Id: 54206
Status: new
Priority: 0/
Queue: POE-Component-Server-HTTP

People
Owner: Nobody in particular
Requestors: SACAVILIA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.09
Fixed in: (no value)



Subject: RC_WAIT causes sockets to leak
When using a handler that returns RC_WAIT status in order to process requests without blocking, the connection does not get properly cleaned up when an error is detected (such as the remote side closing the socket). After accepting and processing several connections, sockets will pile up in CLOSE_WAIT until they hit ulimit -n, preventing the server from accept()ing any new connections. Sending all the data at once and returning RC_OK allows the connections to be fully closed.