Bug 1586981 [wpt PR 19563] - Turn on backpressure for blink::WebSocketStream sooner...
commit45fa71c261112ce16860e8cdf467ffccd5ce6165
authorAdam Rice <ricea@chromium.org>
Mon, 14 Oct 2019 13:39:47 +0000 (14 13:39 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 17 Oct 2019 19:25:22 +0000 (17 19:25 +0000)
tree3ac6b27d5c629df7201eacc66600fda47eafe59f
parente758f9d44801a3eaef37e2e14e62670b70605227
Bug 1586981 [wpt PR 19563] - Turn on backpressure for blink::WebSocketStream sooner, a=testonly

Automatic update from web-platform-tests
Turn on backpressure for blink::WebSocketStream sooner

Apply backpressure to blink::WebSocketChannel before the WebSocketStream
handshake starts, rather than after it completes. This avoids a race
condition where more of the first message is read than should be.

Also fix flakiness in the
external/wpt/websockets/stream-tentative/backpressure-receive.any.js by
doubling the size of message used.

BUG=1002780

Change-Id: I915c71a4b81b95375b7c4c584f7782d5336cba85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1844911
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703610}

--

wpt-commits: b3807b6ffe70db1bcaa28cf8b5aa8c6da025b5fa
wpt-pr: 19563
testing/web-platform/tests/websockets/handlers/send-backpressure_wsh.py
testing/web-platform/tests/websockets/stream-tentative/backpressure-receive.any.js