Closed vapier closed 1 year ago
the TCP constructor defines keepAliveDelay as so:
https://wicg.github.io/direct-sockets/#tcpsocketoptions-dictionary keepAliveDelay member Enables TCP Keep-Alive by setting SO_KEEPALIVE option on the socket equal to the specified Keep-Alive ping delay in milliseconds.
i don't understand this as SO_KEEPALIVE is a boolean in the UNIX & Windows worlds, it isn't a ping delay in milliseconds.
so what system/API is this targeting, and how are implementers expected to support it ?
hmm, i see Chrome at least is using TCP_KEEPIDLE & TCP_KEEPINTVL on UNIX systems while treating SO_KEEPALIVE as a proper boolean. so the docs are just misleading here.
TCP_KEEPIDLE
TCP_KEEPINTVL
SO_KEEPALIVE
Fixed in https://github.com/WICG/direct-sockets/pull/63
the TCP constructor defines keepAliveDelay as so:
i don't understand this as SO_KEEPALIVE is a boolean in the UNIX & Windows worlds, it isn't a ping delay in milliseconds.
so what system/API is this targeting, and how are implementers expected to support it ?