Make DeferredOnStartLoadingResponseBody drain the body pipe
Currently DeferredOnStartLoadingResponseBody keeps the body's ScopedDataPipeConsumerHandle around until it gets flushed. This might result in the pipe blocking the network service if we're deferred for a long time, which is likely if a page is put into the back-forward cache. With this CL, DeferredOnStartLoadingResponseBody will drain the original body pipe and channel the data into a new pipe, so that data coming from the network service will be handled quickly even when deferred. Bug: 1137682 Change-Id: Id4dadf4b85657c57821696443e72725fe188cfe1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2513314 Commit-Queue: Rakina Zata Amni <rakina@chromium.org> Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Yutaka Hirano <yhirano@chromium.org> Cr-Commit-Position: refs/heads/master@{#825090}
Showing
Please register or sign in to comment