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

Add HTTP connector to HttpState, instead of creating one in http_network_fetch #14697

Closed
jdm opened this issue Dec 23, 2016 · 3 comments
Closed

Add HTTP connector to HttpState, instead of creating one in http_network_fetch #14697

jdm opened this issue Dec 23, 2016 · 3 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Dec 23, 2016

Right now we are not pooling HTTP connections, because we create a new pool for every connection. If we add the pool to the HttpState structure, we can use it from http_network_fetch instead of creating it.

Code: components/net/resource_thread.rs, components/net/http_loader.rs
Tests: ./mach test-wpt tests/wpt/web-platform-tests/XMLHttpRequest (this will ensure that network connections keep working after the change)

@highfive
Copy link

@highfive highfive commented Dec 23, 2016

Please make a comment here if you intend to work on this issue. Thank you!

@mattnenterprise
Copy link
Contributor

@mattnenterprise mattnenterprise commented Dec 25, 2016

I would like to work on this.

@KiChjang
Copy link
Member

@KiChjang KiChjang commented Dec 25, 2016

Go for it! Ask any questions here or on irc.mozilla.org at #servo if you have any questions!

@KiChjang KiChjang added the C-assigned label Dec 25, 2016
bors-servo added a commit that referenced this issue Dec 27, 2016
Reuse the http connector pool between fetches

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #14697

<!-- Either: -->
- [x] There are tests for these changes

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14741)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Dec 27, 2016
Reuse the http connector pool between fetches

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #14697

<!-- Either: -->
- [x] There are tests for these changes

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14741)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants
You can’t perform that action at this time.