[erlang-questions] Building a Non-blocking TCP server using OTP principles

Serge Aleynikov saleyn@REDACTED
Fri Aug 24 14:58:13 CEST 2007


Claes Wikstrom wrote:
> Maybe try to redo the accept() .. say 10 times and then bail out
> Hmmmm...

Or, perhaps, stop accepting new connections if the number of active 
connections is close or equal to the known limit.  Why would newly 
accepted client connections be favored over the existing good ones that 
may be processing data?  If the situation doesn't heal in some period of 
time - kill some client connections that haven't shown recent activity.

I agree that recovery can be tricky if one's goal is to keep the service 
alive, but this is beyond the subject of this thread.  ;-)

Serge



More information about the erlang-questions mailing list