Files
simplexmq/spec/modules/Simplex/Messaging/Transport/KeepAlive.md
Evgeny @ SimpleX Chat 35d4065f32 specs for transport
2026-03-11 17:52:57 +00:00

564 B

Simplex.Messaging.Transport.KeepAlive

Platform-specific TCP keepalive configuration via CApiFFI.

Source: Transport/KeepAlive.hs

Platform-specific TCP_KEEPIDLE

macOS uses TCP_KEEPALIVE instead of TCP_KEEPIDLE. The CPP conditional imports the correct constant at compile time via foreign import capi. Windows uses hardcoded numeric values — the source comment states: "The values are copied from windows::Win32::Networking::WinSock."

Defaults: idle=30s, interval=15s, count=4.