title: WSAEWOULDBLOCK error on non-blocking Connect()
body: <p>I am trying to connect to a server on another machine via a non-blocking connect().</p>
  
  <p>However, when I do so, Connect() returns -1, and I receive WSAEWOULDBLOCK from WSAGetLastError().</p>
  
  <p>MSDN Documentation states that: It is normal for WSAEWOULDBLOCK to be reported as the result from calling connect on a nonblocking SOCK_STREAM socket, since some time must elapse for the connection to be established (<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668%28v=vs.85%29.aspx" rel="nofollow">reference</a>).</p>
  
  <p>The issue is that I am always receiving the error, and -1 is returned from connect() EVEN IF my server is not running.</p>
  
  <p>My socket is a SOCK_STREAM socket, just as suggested. How might I remedy this? Should I provide a timeout after the connect() call to ensure that enough time is given for connect to establish a connection?</p>