Fixing another socket issue.

We were reading from the socket immediately instead of waiting for the timeout to elapse. Whoops.