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

node-fetch / node-fetch / 295 / 1
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 22 May 2020 07:20PM UTC
Files 9
Run time 1s
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

22 May 2020 07:19PM UTC coverage: 99.173% (+0.001%) from 99.172%
295.1

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 %.

1641 of 1652 relevant lines covered (99.33%)

99.3 hits per line

Source Files on job 295.1
  • Tree
  • List 0
  • Changed 8
  • Source Changed 2
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 99
  • Travis Job 295.1
  • 63d36634 on github
  • Prev Job for on master (#289.1)
  • Next Job for on master (#112922668.1)
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