bitcoin/bitcoin — pull request #1772 by Diapolo (2012-09-01 12:15:15+00:00)
Title: fix "socket select error 10022" spam

- when there is no network connection or a failing / non-existent proxy
passed to the client the debug.log was spamed with socket 10022 errors
- this is fixed by adding a check for hSocketMax != 0
- merged a WSAGetLastError() into the related printf()