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

replace process.nextTick with setImmediate to fix 'RangeError: Maximum call stack size exceeded' #8

Merged
merged 1 commit into from
Sep 27, 2013

Conversation

mykmelez
Copy link
Contributor

node-unzip depends on node-pullstream, but unzipping certain archives generates a bunch of:

(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.

Followed by:

RangeError: Maximum call stack size exceeded

node-unzip had a similar problem in its own code and fixed it by replacing process.nextTick calls with setImmediate (EvanOxfeld/node-unzip#28). This PR does the same for node-pullstream and fixes the problem unzipping files in my testing.

joeferner added a commit that referenced this pull request Sep 27, 2013
replace process.nextTick with setImmediate to fix 'RangeError: Maximum call stack size exceeded'
@joeferner joeferner merged commit 3e2c959 into EvanOxfeld:master Sep 27, 2013
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.

2 participants