square/okhttp — pull request #424 by lingmingyb (2014-01-09 03:17:54+00:00)
Title: Connected after everything is initialized

Assuming there are two concurrent threads A, B.

If A sets

connected = true;

B gets into

else if (!connection.isSpdy()) {
connection.updateReadTimeout(client.getReadTimeout());

before A initializes Socket/SpdyConnection, there will be something bad happen.