diff options
author | bors-servo <servo-ops@mozilla.com> | 2022-01-01 13:14:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-01 13:14:08 -0500 |
commit | b06eb38f565bfae67a36a2ba139925b5cc9820ea (patch) | |
tree | dba3958479d5ed2680b961e250ae36b6e5ea7cb8 /components/script/dom/webidls/HTMLObjectElement.webidl | |
parent | d1086be7483ce638798315fd17539f0e6898ebb9 (diff) | |
parent | 903e0cd8570353b0ecef33d094464166869b9eb3 (diff) | |
download | servo-b06eb38f565bfae67a36a2ba139925b5cc9820ea.tar.gz servo-b06eb38f565bfae67a36a2ba139925b5cc9820ea.zip |
Auto merge of #28639 - negator:negator/async, r=jdm
Non-blocking network IO
The current networking strategy uses a fixed sized thread pool to perform blocking requests on a per call basis. This is inefficient, but can be ~easily~ improved by utilizing the existing tokio runtime instead to submit async networking tasks to its executor. However, since servo is currently using an outdated version of the `hyper` http library (`0.12`) we must use the [`tokio_compat`](https://github.com/tokio-rs/tokio-compat) and [`futures_compat`](https://docs.rs/futures/0.3.1/futures/compat/index.html) libraries to integrate with the older version of [`Future` used in `hyper`](https://docs.rs/hyper/0.12.1/hyper/rt/trait.Future.html).
~**NOTE**: This PR is just proof of concept at the moment. In addition to test failures, it appears that large javascript downloads are silently failing to stream entire payloads, and occasionally getting cutoff.~
Tests are passing.
---
<!-- 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 [#22813](https://github.com/servo/servo/issues/22813) (GitHub issue number if applicable)
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/script/dom/webidls/HTMLObjectElement.webidl')
0 files changed, 0 insertions, 0 deletions