Skip to content

fix(streams): set default TCP idle timeout to 60 seconds#2465

Open
dirkwa wants to merge 1 commit intoSignalK:masterfrom
dirkwa:fix-tcp-default-timeout
Open

fix(streams): set default TCP idle timeout to 60 seconds#2465
dirkwa wants to merge 1 commit intoSignalK:masterfrom
dirkwa:fix-tcp-default-timeout

Conversation

@dirkwa
Copy link
Contributor

@dirkwa dirkwa commented Mar 17, 2026

Fixes #1562

Summary

TCP connections had no idle timeout unless explicitly configured, so stale connections went undetected and never reconnected. Defaults to 60 seconds. Users can still set a custom value or explicitly set 0 to disable.

Manually verified timeout parsing logic:

  • No config / empty string → defaults to 60000ms
  • Explicit value (e.g. "30") → uses that value (30000ms)
  • "0" → timeout disabled, no setTimeout call

TCP connections previously had no idle timeout unless explicitly
configured, causing stale connections to go undetected. Default
to 60 seconds so connections automatically reconnect when data
stops flowing. Users can set 0 to explicitly disable the timeout.
@dirkwa dirkwa force-pushed the fix-tcp-default-timeout branch from 3bf091e to 589754a Compare March 17, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set default reasonable tcp idle timeout

1 participant