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

Fixed response not resuming on drain #175

Merged
merged 1 commit into from
May 20, 2014
Merged

Fixed response not resuming on drain #175

merged 1 commit into from
May 20, 2014

Conversation

ierceg
Copy link
Contributor

@ierceg ierceg commented May 19, 2014

This fixes #146 by marking OutgoingMessage (a writable stream) as readable allowing resuming of mocking by Node itself (deep in its streams library) when drained. This is a hack obviously but it works. I think that the proper way to actually solve this is to make response be a IncomingMessage (as that's what we are mocking - incoming messages) but I got all sorts of errors when I started down that path so I let it be for now.

@pgte pgte merged commit a21b9d0 into master May 20, 2014
@pgte
Copy link
Member

pgte commented May 20, 2014

Thanks, landed on v0.31.2.

@ierceg ierceg deleted the fix-146 branch January 8, 2015 13:15
@lock
Copy link

lock bot commented Sep 14, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you!

@lock lock bot locked as resolved and limited conversation to collaborators Sep 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants