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

Implement binding.writeBuffers() #94

Merged
merged 4 commits into from
Mar 7, 2016
Merged

Implement binding.writeBuffers() #94

merged 4 commits into from
Mar 7, 2016

Conversation

tschaub
Copy link
Owner

@tschaub tschaub commented Mar 7, 2016

This adds an implementation for binding.writeBuffers(). The fs uses a new binding.writeBuffers() method in implementing the stream's _writev method. The _writev method in turn looks to be called when there is a buffered write request. In Node >= 0.12, this happens when calling write on a corked stream. So the integration tests for the new writeBuffers() method corks, writes to, and then uncorks a write stream.

Fixes #88.

@tschaub tschaub mentioned this pull request Mar 7, 2016
@jeresig
Copy link

jeresig commented Mar 7, 2016

@tschaub I just checked out this pull request and ran it against my reduced test case and it passed. Thank you!

tschaub added a commit that referenced this pull request Mar 7, 2016
Implement binding.writeBuffers().
@tschaub tschaub merged commit 1138f22 into master Mar 7, 2016
@tschaub tschaub deleted the write-buffers branch March 7, 2016 21:32
@jeresig
Copy link

jeresig commented Mar 7, 2016

Fantastic, thank you! 👍

@tschaub
Copy link
Owner Author

tschaub commented Mar 7, 2016

Published as [email protected]. Thanks for the help narrowing this down.

@jeresig
Copy link

jeresig commented Mar 7, 2016

@tschaub no problem! I just pulled [email protected] into my app and confirmed that it fixed the issue I was seeing. Thank you again for your work and great module!

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