You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doc(tls): tls.connect() supports timeout option but it is undocumented and misleadingly described #61075
tls.connect() supports the timeout option, but it is currently undocumented in the API reference.
Although the history indicates that timeout support was added in v11.8.0, v10.16.0, the corresponding documentation entry was later accidentally removed. As a result, the current docs are incomplete and misleading.
Actual Behavior
tls.connect({ timeout }) works as expected and is supported in practice
But it is not documented anywhere in the current API reference
Expected Behavior
Explicitly document the timeout option in tls.connect() options.
Background
Historically, when timeout support was introduced to tls.connect(), it was properly documented.
However, in a later commit, the documentation was removed unintentionally:
Activity