Without know more about your server configuration all I can do is take a
shot in the dark.  Are you accepting multiple connections or
accept/read/write/disconnect where you only process one client connection at
a time?  If you handle multiple concurrent persistent connections, I would
spawn off the jobs and only handle a 100 or so per job.  This is the way
OS400 Telnet server works.  One listening program spawning off connections
to one of several programs handling a limited number of concurrent
persistent connections.  With a 1000 clients, you may need to re-design your
server.

Chris Bipes

-----Original Message-----

I am occasionally getting  the following error "A remote host refused an 
attempted connect operation" when my client program tries to connect. From 
what I have read this is caused by exceeding the backlog on the listen() 
api.  Is there anything else that can cause this error?  I have the 
backlog parameter set to 400 with 1000 clients running this application. 
It doesn't seem likely that it would exceed a backlog of 400.  Is there 
any way I can see what is happening on the host besides adding logging to 
my listener program?  Thanks. 

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.