From 27463b509fb6d468d3ddfa71a1a71bef509128f4 Mon Sep 17 00:00:00 2001 From: jwilson Date: Sun, 19 Jan 2014 23:08:16 -0500 Subject: [PATCH] Synchronize when acking settings. Without this tests fail. --- .../java/com/squareup/okhttp/internal/spdy/Http20Draft09.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/okhttp-protocols/src/main/java/com/squareup/okhttp/internal/spdy/Http20Draft09.java b/okhttp-protocols/src/main/java/com/squareup/okhttp/internal/spdy/Http20Draft09.java index 1aa4870d8..787565604 100644 --- a/okhttp-protocols/src/main/java/com/squareup/okhttp/internal/spdy/Http20Draft09.java +++ b/okhttp-protocols/src/main/java/com/squareup/okhttp/internal/spdy/Http20Draft09.java @@ -323,7 +323,7 @@ public final class Http20Draft09 implements Variant { out.flush(); } - @Override public void ackSettings() throws IOException { + @Override public synchronized void ackSettings() throws IOException { // ACK the settings frame. out.writeInt(0 | (TYPE_SETTINGS & 0xff) << 8 | (FLAG_ACK & 0xff)); out.writeInt(0);