Flush chunks on each upload read.
The way CronetJavaEngine (which uses JavaUrlRequest) is implemented in regards to chunked uploads: 1) Is inconsistent with it's native counterpart which almost immediately writes the obtained data to the wire. 2) Makes it impossible to slowly stream data (like during a voice search) in a controlled manner. No data is sent other than at JavaUrlRequest.DEFAULT_CHUNK_LENGTH (8192) intervals. BUG=b/31592204 Review-Url: https://codereview.chromium.org/2356923002 Cr-Commit-Position: refs/heads/master@{#419869}
Showing
Please register or sign in to comment