mirror of
https://github.com/square/okhttp.git
synced 2026-01-27 04:22:07 +03:00
SpdyConnection needs to guard its own state separately from the SpdyWriter, which permits slow blocking calls. Split these into multiple independent locks. Also use independent right-sized thread pools for reading (exactly one thread all the time) delayed writing (0 or 1 threads) and callbacks (any number of threads).