[Serusers] reuse of existing tcp connection

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Mon Oct 20 20:44:17 CEST 2003


On Oct 21, 2003 at 00:35, Juha Heinanen <jh at tutpro.com> wrote:
> Andrei Pelinescu-Onciul writes:
> 
>  > Yes, the connections will be equally distributed between the tcp children
>  > processes. If they are idle for more than 5s, they will be returned to
>  >  the "master" tcp process; if they become active again a child is again
>  >  selected. Each child can handle any number of tcp connections
>  >  simultaneously.
> 
> andrei,
> 
> thanks for the explanation.  tcp connections to UAs are thus bound to
> children processes.  what happens if a request comes in along a
> particular tcp connection, but the process that terminates it is busy
> precessing another request?

It will wait until the process finishes with the other request.
(but in general the "master" process tries to distribute a new
connection to the least busy child, the connection will be bound to the
child as long as it's active  + 5s, to avoid moving the file descriptor
too much, which involves a lot of syscalls and it's quite slow).

Andrei




More information about the sr-users mailing list