Skip to content

Interface: Timeouts ​

Defined in: netconf/src/client.ts:80

Timeouts in milliseconds. Infinity means no limit. Values above 2,147,483,647 (about 24.8 days, the longest timer the platform has) are shortened to it. A value that is not a number makes connect() reject with a TypeError, and zero, a negative number or NaN with a RangeError, before any connection is attempted.

Extends ​

Properties ​

close? ​

ts
readonly close?: number;

Defined in: netconf/src/messages/session.ts:36

Waiting for the reply to <close-session> before closing anyway. Default 5 s.

Inherited from ​

SessionTimeouts.close


connect? ​

ts
readonly connect?: number;

Defined in: netconf/src/client.ts:82

Opening the connection (TCP, SSH or TLS handshake, authentication). Default 30 s.


hello? ​

ts
readonly hello?: number;

Defined in: netconf/src/messages/session.ts:32

Receiving the server's hello once the connection is open. Default 30 s.

Inherited from ​

SessionTimeouts.hello


rpc? ​

ts
readonly rpc?: number;

Defined in: netconf/src/messages/session.ts:34

Each RPC, unless overridden per call. Default 60 s.

Inherited from ​

SessionTimeouts.rpc

Released under the MIT Licence.