This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]