Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upxmlhttprequest: Don't pass total value on timeout #24477
Conversation
highfive
commented
Oct 17, 2019
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @SimonSapin (or someone else) soon. |
highfive
commented
Oct 17, 2019
|
Heads up! This PR modifies the following files:
|
highfive
commented
Oct 17, 2019
|
@bors-servo try=wpt |
xmlhttprequest: Don't pass total value on timeout fixes: #24286 Signed-off-by: Santosh Sivaraj <santosh@fossix.org> <!-- Please describe your changes on the following line: --> Progress event should not get total/partial load values on timeout. Fix to pass 0 in the error path. --- <!-- 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 #24286 <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___
|
|
|
Cool! More tests PASS now! but one (
|
|
With this change, we shouldn't have any new test failures. |
|
The expected test results will need to be updated to include the newly passing tests. |
|
@santoshs Are you planning to finish this PR? |
This comment has been minimized.
This comment has been minimized.
community-tc-integration
bot
commented on 08bf7ac
Nov 8, 2019
Submitting the task to Taskcluster failed. DetailsTaskcluster-GitHub attempted to create a task for this event with the following scopes:
The expansion of these scopes is not sufficient to create the task, leading to the following: Client ID static/taskcluster/github does not have sufficient scopes and is missing the following scopes:
This request requires the client to satisfy the following scope expression:
|
| self.dispatch_upload_progress_event(atom!("progress"), Err(())); | ||
| return_if_fetch_was_terminated!(); | ||
| self.dispatch_upload_progress_event(atom!("load"), None); | ||
| self.dispatch_upload_progress_event(atom!("load"), Err(())); |
This comment has been minimized.
This comment has been minimized.
jdm
Nov 8, 2019
Member
These two lines should use Ok(Some(0)), since this is not an error code path.
This comment has been minimized.
This comment has been minimized.
santoshs
Nov 9, 2019
Author
@jdm thanks for the review. The servo build most of time gets killed because of lack of memory, I have a 8 GB system. I have read somewhere that using llvm linker would use less memory, any idea how to set that up? I have a fedora 30 machine.
This comment has been minimized.
This comment has been minimized.
jdm
Nov 9, 2019
Member
Based on rust-lang/rust#39915 (comment) and rust-lang/rust#39915 (comment), I think you would need to follow these instructions and modify the rustflags entry to include -C linker=rust-lld.
|
Closing due to inactivity. |
santoshs commentedOct 17, 2019
fixes: #24286
Signed-off-by: Santosh Sivaraj santosh@fossix.org
Progress event should not get total/partial load values on timeout. Fix to pass 0 in the error path.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors