Skip to content

docs: clarify Node.js default for route.options.timeout.socket#4587

Closed
Hashim1999164 wants to merge 1 commit into
hapijs:masterfrom
Hashim1999164:docs/clarify-socket-timeout-default
Closed

docs: clarify Node.js default for route.options.timeout.socket#4587
Hashim1999164 wants to merge 1 commit into
hapijs:masterfrom
Hashim1999164:docs/clarify-socket-timeout-default

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Jul 23, 2026

Copy link
Copy Markdown

Summary

  • Updates route.options.timeout.socket docs to match Node.js behavior since v13.0.0 (no default socket timeout; older versions used 2 minutes).
  • Aligns the matching JSDoc in lib/types/route.d.ts.

Closes #4468

Test plan

  • Confirm wording in API.md matches Node's server.timeout history
  • Spot-check IntelliSense text for timeout.socket in the type definitions

Node.js no longer times out sockets by default since v13.0.0; the
previous 2-minute default is outdated. Update API.md and type docs
to match current Node behavior.

Closes hapijs#4468
@kanongil kanongil added the follow instructions The issue failed to follow instructions, try again label Jul 23, 2026
@kanongil kanongil closed this Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

follow instructions The issue failed to follow instructions, try again

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Node sockets timeout after 2 minutes by default

2 participants