gtpc1m39Transmission Control Protocol/Internet Protocol

Socket Sweeper Support to Close Inactive Sockets

If communication across a socket stops, the socket will still stay open until one of the following occurs:

Socket sweeper support closes inactive socket descriptors after a specified period of time so the inactive socket descriptors can be free for another communication session.

You can specify the period of time with the SOCKSWP parameter of the SNAKEY macro, and change the period of time online with the ZNKEY command using the SOCKSWP parameter.

The SOCKSWP parameter specifies, in minutes, the interval for the socket sweeper. Socket application programs that do not use a particular socket descriptor in the period of time that you specify will be closed by the socket sweeper program.

If you specify zero, the socket sweeper does not close any inactive socket descriptors. For this, the socket application code must close inactive sockets.

For sockets using TCP/IP native stack support, the socket sweeper will also close sockets if all IP routers that could be used by the socket are not active for an extended period of time.