Timeout.Integers

Connection defaults, integers version.

Values

ValueMeaning
receiveMsecs1000

The receive attempt timeout as set as a SocketOption.

receiveShortenedMsecscast(int)(receiveMsecs * CDF.receiveShorteningMultiplier)

The receive attempt timeout when it's shortened to provide better responsiveness, in milliseconds.

maxShortenDurationHnsecs2_000 * 10_000

The amount of time to spend with a shortened receive timeout. After this, it reverts to Timeout.receiveMsecs.

sendMsecs15_000

The send attempt timeout as set as a SocketOption.

whoisRetrySeconds30

How long to wait before allowing to re-issue a WHOIS query for a user.

This is merely to stop us from spamming queries for the same person without hysteresis.

whoisGracePeriodSeconds3

The length of the window in which replays may be queued before the timer towards Timeout.whoisRetry kicks in.

whoisDiscardSeconds10

How long a replayable event is expected to be relevant. Before this it will be replayed, after this it will be discarded.

Note: WHOIS-replays will break if the ping toward the server reaches this value.

connectionRetrySeconds5

The amount of seconds to wait before retrying after a failed connection attempt.

connectionDelayCapSeconds300

The maximum amount of time to wait between connection attempts.

connectionLostSeconds600

How long to keep trying to read from the sever when not receiving anything at all before the connection is considered lost.

networkDownDelayCapSeconds600

How long to wait before retrying a connection attempt after a network down error.

httpGETSeconds10

Timeout for HTTP GET requests.

readErrorGracePeriodMsecs100

How long to wait after encountering an error when reading from the server, before trying anew.

Not having a small delay could cause it to spam the screen with errors as fast as it can.

twitchRegistrationFailConnectionRetryMsecs500

The amount of seconds to wait before retrying to connect after an instant failure to register on Twitch.

httpQueryInitialWaitMsecs200

How long to wait after issuing an HTTP request before checking whether a response has been received.

httpQueryWaitBetweenChecksMsecs100

How long to wait between checks for a response after the initial wait period.