Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errno for timeouts #1184

Merged
merged 1 commit into from
Feb 22, 2017
Merged

Errno for timeouts #1184

merged 1 commit into from
Feb 22, 2017

Conversation

kornelski
Copy link
Contributor

@kornelski kornelski commented Feb 22, 2017

Add errno to distinguish between response timeout and body download timeout

The existing err.code can't be changed, since it'd technically be a breaking change.

The new errno = ETIMEDOUT code is almost exactly what it should be. The other ETIME is stretching the meaning "timer expired" a bit, but at least its still a valid posix code.

…meout

It is stretching the meaning of posix codes a bit, but at least avoids inventing new ones
@focusaurus focusaurus merged commit e383f5a into master Feb 22, 2017
@focusaurus focusaurus deleted the timecode branch February 22, 2017 17:42
kornelski added a commit that referenced this pull request Mar 5, 2017
* origin/master: (32 commits)
  Progress event doc
  v3.5.0
  Add errno to distinguish between request timeout and body download timeout (#1184)
  Warn about bogus timeout options (#1185)
  3.4.4
  Treat videos like images
  Avoid renaming module
  3.4.3
  3.4.3
  Add node client support for bearer token authentication
  Add client support for bearer token authentication
  Fixed being able to define own parsers when their mime type starts with text/
  conditional withCredentials
  3.4.2
  Updated dependencies
  Use formData.on instead of .once
  Ignore attach(,null)
  3.4.1
  Simplify check
  Dedupe query string append
  ...
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.

None yet

2 participants