Timeout

Various timeouts, in seconds unless specified otherwise.

Values

ValueMeaning
sendMsecs15_000

The send attempt timeout as set as a SocketOption, in milliseconds.

receiveMsecs1000

The receive attempt timeout as set as a SocketOption, in milliseconds.

maxShortenDurationMsecs2000

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

connectionDelayCap300

The maximum amount of time to wait between connection attempts.

connectionRetry5

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

twitchRegistrationFailConnectionRetryMsecs500

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

whoisRetry30

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.

whoisDiscard10

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.

whoisGracePeriod3

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

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.

connectionLost600

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

httpGET10

Timeout for HTTP GET requests.

messageReadMsecs1500

Timeout for concurrency message reads (in between socket reads).

Meta