On Oct 21, 2003 at 00:35, Juha Heinanen jh@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