commit | 335bba37faaa124955e58987f566a0e97245b4f3 | [log] [tgz] |
---|---|---|
author | John Abd-El-Malek <jam@chromium.org> | Tue Jul 12 05:49:56 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jul 12 05:49:56 2022 |
tree | 3de8b63894df87c6d07bc71e3ccc68d1ee39fa2d | |
parent | 9de4d236589a8f214811c6df1159176c9f38a6a0 [diff] |
Try to avoid blocking reads in InputStream reading code. If the app provided InputStream knows how many bytes are available right away, read that much first and then block later. This is behind an existing Finch experiment. Also decouple the maximum number of bytes to read from the InputStream at a time from the size of the mojo data pipe. It's good to have the latter be large and we are experimenting with different sizes when reading from the network since that just reads what is available and doesn't block. But the former is blocking and could wait on the network, so make sure it doesn't get over 32KB. (cherry picked from commit f4d772f35d342d7296d3c6ebd07262000580682b) Bug: 1318925 Change-Id: Ibc06d6b2110327da79a9f5fe492af25a48a5f0bd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3712267 Auto-Submit: John Abd-El-Malek <jam@chromium.org> Commit-Queue: Clark DuVall <cduvall@chromium.org> Reviewed-by: Clark DuVall <cduvall@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1016216} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3756403 Cr-Commit-Position: refs/branch-heads/5060@{#1201} Cr-Branched-From: b83393d0f4038aeaf67f970a024d8101df7348d1-refs/heads/main@{#1002911}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.