Re: PoCo::Server::TCP bug or wrong usage ?

2007-03-23 Thread zgrim
On 3/23/07, Matt Sickler <[EMAIL PROTECTED]> wrote: The InlineStates, PackageStates, and ObjectStates for PoCoServerTCP are for the client sessions: when you spawn() a PCST, it makes a master session that sits around listening for connections, when one arrives, it spawns a new session which get I

Re: POE::Component::Server::HTTP, Keep alive, and leaking sockets

2007-03-23 Thread Rocco Caputo
Something doesn't add up. Maybe I'm missing a pertinent fact. On one hand, if sockets are being kept alive between requests, why is Firefox opening a new socket for each request? On the other hand, if Firefox is opening a new socket for each request, why isn't it closing the old ones? Wh

Re: POE::Component::Server::HTTP, Keep alive, and leaking sockets

2007-03-23 Thread David Davis
I used 'sudo ngrep port 32080' and watched ls /proc//fd/ while I hit the http server. I noticed that the responses were HTTP/1.0 but I didn't see a connection: close header. So, I set $response->protocol( "HTTP/1.1" ); in the cookbook example, and the sockets didn't leak! I think we have a few op