mirror of
https://github.com/square/okhttp.git
synced 2026-01-17 08:42:25 +03:00
It turns out that the NIO dumpsterfire harms us again here. The Channels APIs synchronize whenever reading or writing to a stream if the channel implements SelectableChannel. If both the input stream and the output stream are on the same channel, then it is impossible to read and write concurrently. Fixes: https://github.com/square/okhttp/issues/4419