This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question on connection queue
- From: Chin Hai <chinhai at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 25 Jul 2002 20:56:34 -0700 (PDT)
- Subject: Question on connection queue
Hi,
i am writing to seek for advise to see if anyway i
can limit the connection queue for a server listening
socket in linux platform. When calling listen on
socket, the backlog specified for Linux platform
doesn't matched with the number of incoming
connections. My understanding is there is a system
variable to do so (am i understand correctly?).
what i need to do is, i want to limit incoming
connection to certain limit, eg, 5. The rest of client
connection will get ECONNREFUSED. How can i do that in
Linux? i means switch the limit in my application
without changing the system variable.
any helps will be appreciated.
thanks,
chinhai
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com