libp2p
    Preparing search index...

    Interface TCPOptions

    interface TCPOptions {
        backlog?: number;
        closeServerOnMaxConnections?: CloseServerOnMaxConnectionsOpts;
        dialOpts?: TCPSocketOptions;
        inboundSocketInactivityTimeout?: number;
        listenOpts?: TCPSocketOptions;
        maxConnections?: number;
        outboundSocketInactivityTimeout?: number;
        socketCloseTimeout?: number;
    }
    Index

    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.

    dialOpts?: TCPSocketOptions

    Options passed to net.connect for every opened TCP socket

    inboundSocketInactivityTimeout?: number

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

    listenOpts?: TCPSocketOptions

    Options passed to every net.createServer for every TCP server

    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