Commit 501f4cd6eca32eac678ae64828c58f143ce5bb4e

Con Kolivas 2013-03-07T19:59:30

Clear the socket of anything in the receive buffer if we're going to retry connecting.