Skip to content

Commit

Permalink
okhttp: fix incorrect initial size of outbound flow control window
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisschek committed Feb 25, 2020
1 parent ea6a6d0 commit 22eb66e
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -489,8 +489,8 @@ public Runnable start(Listener listener) {
synchronized (lock) {
frameWriter = new ExceptionHandlingFrameWriter(OkHttpClientTransport.this, testFrameWriter,
testFrameLogger);
outboundFlow =
new OutboundFlowController(OkHttpClientTransport.this, frameWriter, initialWindowSize);
outboundFlow = new OutboundFlowController(
OkHttpClientTransport.this, frameWriter, DEFAULT_WINDOW_SIZE);
}
serializingExecutor.execute(new Runnable() {
@Override
Expand All @@ -516,7 +516,7 @@ public void run() {

synchronized (lock) {
frameWriter = new ExceptionHandlingFrameWriter(this, rawFrameWriter);
outboundFlow = new OutboundFlowController(this, frameWriter, initialWindowSize);
outboundFlow = new OutboundFlowController(this, frameWriter, DEFAULT_WINDOW_SIZE);
}
final CountDownLatch latch = new CountDownLatch(1);
// Connecting in the serializingExecutor, so that some stream operations like synStream
Expand Down

0 comments on commit 22eb66e

Please sign in to comment.