1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-24 04:02:07 +03:00

Synchronize when acking settings.

Without this tests fail.
This commit is contained in:
jwilson
2014-01-19 23:08:16 -05:00
parent 3e63e7a5e4
commit 27463b509f

View File

@@ -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);