Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Add a timeout to the binary fetch request #1691

Merged
merged 1 commit into from
Aug 31, 2016

Conversation

xzyfer
Copy link
Contributor

@xzyfer xzyfer commented Aug 31, 2016

This PR adds a 1s timeout to the binary fetch request as well as a
useful error message.

It came to light in #1690 that the download can block for a long time.

npm info lifecycle node-sass@3.8.0~install: node-sass@3.8.0

> node-sass@3.8.0 install /Usersproject-path/node_modules/node-sass
> node scripts/install.js

Build timed out (after 35 minutes). Marking the build as failed.

We see a fair amount of hung installer issues that could be related
to this. The error output will give us another data point in those
cases.

This PR adds a timeout to the binary fetch request as well as a
useful error message.

It came to light in sass#1690 that the download can block for a long time.

```
npm info lifecycle node-sass@3.8.0~install: node-sass@3.8.0

> node-sass@3.8.0 install /Usersproject-path/node_modules/node-sass
> node scripts/install.js

Build timed out (after 35 minutes). Marking the build as failed.
```

We see a fair amount of hung installer issues that could be related
to this. The error output will give us another data point in those
cases.
@xzyfer xzyfer added this to the next.patch milestone Aug 31, 2016
@xzyfer xzyfer self-assigned this Aug 31, 2016
@xzyfer xzyfer merged commit 4dae69c into sass:master Aug 31, 2016
@xzyfer xzyfer deleted the feat/timeout-binary-fetch branch August 31, 2016 09:31
@xzyfer xzyfer modified the milestone: next.patch Sep 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant