Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - number of TCP socket connections: (3 Items)
   
number of TCP socket connections  
Is there a way to specify/configure the number of simultaneous or concurrent TCP socket connections?

I have a customer that has a scenario in which they need to service a number of client TCP socket connections with a 
single TCP server socket application within a predefined time interval. These connections may occur concurrently. So 
they would like to know how many TCP connections can be made to a QNX server via TCP sockets from different QNX clients 
concurrently.

They hope, the 'backlog' parameter of listen() socket API actually refer to the maximum length that the queue of pending
 connections may grow to. It seems the maximum value of this parameter is defined as 128 (SOMAXCONN) in socket.h. Does 
this really affect the number of concurrent connections that can be handled? Is this documented somewhere? Is this part 
of the inetd function or a QNX resource manager limit?

Thanks!
- Ed Lee
Re: number of TCP socket connections  
On Thu, Apr 15, 2010 at 11:11:00AM -0400, Edward Lee wrote:
> Is there a way to specify/configure the number of simultaneous or concurrent TCP socket connections?
> 
> I have a customer that has a scenario in which they need to service a number of client TCP socket connections with a 
single TCP server socket application within a predefined time interval. These connections may occur concurrently. So 
they would like to know how many TCP connections can be made to a QNX server via TCP sockets from different QNX clients 
concurrently.
> 
> They hope, the 'backlog' parameter of listen() socket API actually refer to the maximum length that the queue of 
pending connections may grow to. It seems the maximum value of this parameter is defined as 128 (SOMAXCONN) in socket.h.
 Does this really affect the number of concurrent connections that can be handled? Is this documented somewhere? Is this
 part of the inetd function or a QNX resource manager limit?
> 

- The number of fds a process can have open is the -F option to proc.
- The number of sockets the stack can service is limited by memory.
- The number of blocking operations the stack can have pending at any
  pointn in time is limited by 'threads_max:

io-pkt -ptcpip threads_max=X

Regards,

-seanb
Re: number of TCP socket connections  
Thanks Seanb!!