Re: Pen dropping excess connections?

From: Ulric Eriksson <ulric_at_siag.nu>
Date: Mon, 26 Mar 2007 16:11:13 +0200 (CEST)

On Sun, 25 Mar 2007, Pete K wrote:

> Hello, I have a question about how pen handles multiple connections
> given a particular configuration. Given something like
>
> pen 127.0.0.1:8000 -r 127.0.0.1:8001:1 127.0.0.1:8002:1
>
> what does pen do if both servers at 8001 and 8002 are handling requests
> and another request is received? Does pen drop the new request, or does
> it get queued internally by pen until one of the servers is free? The
> behavior I have seen makes me think that, at least by default, pen drops
> the excess connection.

It depends. With the command line above, the excess connection
will be accepted and then closed when pen figures out there is
no available server. If you however do this:

pen -r -x 2 127.0.0.1:8000 127.0.0.1:8001:1 127.0.0.1:8002:1

then pen will never accept more than two connections at a time.
The rest will be queued. This behaviour isn't anywhere near as
annoying as accepting and immediately closing the connection.

Ulric
Received on Mon Mar 26 2007 - 16:11:15 CEST

This archive was generated by hypermail 2.2.0 : Mon Mar 26 2007 - 16:11:18 CEST