SOMAXCONN statement

Use the SOMAXCONN statement to specify the maximum number of connection requests queued for any listening socket.

Syntax

Rule: Specify the parameters in the order shown here.
Read syntax diagramSkip visual syntax diagram
   .-SOMAXCONN 1024------------------.   
>>-+---------------------------------+-------------------------><
   '-SOMAXCONN --maximum_queue_depth-'   

Parameters

maximum_queue_depth
The maximum number of pending connection requests queued for any listening socket. The minimum value is 1, the maximum value is 2147483647, and the default value is 1024.

This number is stored as a fullword integer, but most implementations of TCP/IP hardcode a value in the range 5 - 10.

This number is the maximum depth for any listening stream socket, but you can specify a shorter queue length when the listen performed for the socket.

Steps for modifying

To modify parameters for the SOMAXCONN statement, you must respecify the statement with the new parameters.

Examples

This example shows a SOMAXCONN statement specifying the default number of listening sockets.
SOMAXCONN                   1024

Usage notes