• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

node-fetch / node-fetch / 295
99%

Build:
DEFAULT BRANCH: master
Ran 22 May 2020 07:20PM UTC
Jobs 2
Files 9
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
295

push

travis-ci-com

web-flow
fix: disambiguate timeout behavior for response headers and body (#770)

There is a single timeout option which applies to both the receiving of
response headers and the receiving of the entire response body. Once
the response is received, the socket timeout must be cleared to allow
the timeout to apply to the receiving of the entire response body.

Without clearing the socket timeout, if the nearing the idle timeout
when the Promise for the body is created, then the request's timeout
handler will abort the request, emitting ERR_STREAM_PREMATURE_CLOSE in
the body Promise.

By clearing the socket timeout once the response headers are received,
the timeout for the entire body can be started when the body is awaited.
Since the request will no longer be aborted by the socket timeout,
destroy is called on the body to prevent it continuing to emit data
events.

398 of 404 branches covered (98.51%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 2 files covered. (100.0%)

1641 of 1652 relevant lines covered (99.33%)

198.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 295.1 22 May 2020 07:20PM UTC 0
99.17
Travis Job 295.1
2 295.2 22 May 2020 07:20PM UTC 0
99.17
Travis Job 295.2
Source Files on build 295
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #295
  • 63d36634 on github
  • Prev Build on master (#289)
  • Next Build on master (#112922668)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc