Interface TCPOptions

Hierarchy

  • TCPOptions

Properties

backlog?: number

Parameter to specify the maximum length of the queue of pending connections https://nodejs.org/dist/latest-v18.x/docs/api/net.html#serverlisten

closeServerOnMaxConnections?: CloseServerOnMaxConnectionsOpts

Close server (stop listening for new connections) if connections exceed a limit. Open server (start listening for new connections) if connections fall below a limit.

inboundSocketInactivityTimeout?: number

An optional number in ms that is used as an inactivity timeout after which the socket will be closed

maxConnections?: number

Set this property to reject connections when the server's connection count gets high. https://nodejs.org/api/net.html#servermaxconnections

outboundSocketInactivityTimeout?: number

An optional number in ms that is used as an inactivity timeout after which the socket will be closed

socketCloseTimeout?: number

When closing a socket, wait this long for it to close gracefully before it is closed more forcibly