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

feat: migrate protocol module to NetworkService (Part 6) #18223

Merged
merged 8 commits into from May 11, 2019

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented May 9, 2019

Description of Change

Refs #15791.

This PR fixes large file handling when using registerStreamProtocol API with NetworkService enabled, all registerStreamProtocol tests are passing now.

The NodeStreamLoader is also refactored to use paused mode to read data from Readable stream, so we don't need to copy data from buffer and hold it in memory, and we only need to make sure the passed Buffer is alive while writing data to pipe.

Checklist

Release Notes

Notes: no-notes

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 9, 2019
@zcbenz zcbenz force-pushed the ns-protocol-stream-enhancements branch from b923e22 to 94f64a7 Compare May 10, 2019 00:52
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 10, 2019
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@zcbenz zcbenz merged commit 326215e into master May 11, 2019
@release-clerk
Copy link

release-clerk bot commented May 11, 2019

No Release Notes

@zcbenz zcbenz deleted the ns-protocol-stream-enhancements branch May 11, 2019 06:15
kiku-jw pushed a commit to kiku-jw/electron that referenced this pull request May 16, 2019
)

* fix: start node strem asyncly

* fix: headers value may be a list

* fix: simply destruct on finish/error

* fix: class may destruct immediately after subscribing "data"

* fix: send meaningful error

* fix: must always provide a response body

* fix: handle the case when one write can not write all data

* fix: handle connection error
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.

None yet

2 participants