× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Altering the SOMAXCONN value.
  • From: Walden Leverich <walden@xxxxxxxxxxxxxxx>
  • Date: Tue, 21 Oct 1997 13:40:29 -0400
  • Organization: Tech Software

Why would you want to? Usually you have one thread listen for connections, 
pass the connection off to another thread for processing, and then go back 
to listening for connections. The SOMAXCONN should be large enough to 
handle the backlog that will occur while you spawn a thread, so 5 is 
usually sufficient and 512 should be more than enough.

However, now that I am thinking about this, the 400 does not support 
threads, so I'm not sure how you would handle this on the 400. I doubt you 
can pass connection handles between jobs, but maybe you can. How are you 
processing the connections? Anyway, if you have more than 512 clients 
waiting on the server to listen() for them you may have a problem.

-Walden

-------------------------------
Walden Leverich
Tech Software
walden@techsoftinc.com
www.techsoftinc.com

-----Original Message-----
From:   Ed.Doxtator@ssa.co.uk [SMTP:Ed.Doxtator@ssa.co.uk]
Sent:   Monday, October 20, 1997 11:35 AM
To:     MIDRANGE-L@midrange.com
Subject:        Altering the SOMAXCONN value.


Hey All!

We're in the middle of doing some TCP/IP stress-testing, and in the course
of our research, we've found that when you do a listen(), there's two
parameters allowed.  The first is the socket you're going to listen on.
The second is the maximum number of connections TCP/IP will backlog before
connection requests to that socket are rejected.

The usual limit for Unix systems appears to be something like 5.  The
AS/400 has a maximum number allowed, defined in QSYSINC/SYS(SOCKET) called
SOMAXCONN.  The limit is 512.

Has anyone changed this limit to something higher?  If so, what happened?

Look after yerselves...

Thanks,

-Doc


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MAJORDOMO@midrange.com
|    and specify 'unsubscribe MIDRANGE-L' in the body of your message.
| Questions should be directed to the list owner/operator: david@midrang  
e.com
+---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MAJORDOMO@midrange.com
|    and specify 'unsubscribe MIDRANGE-L' in the body of your message.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2024 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.