What does Windows error code 10035 (WSAEWOULDBLOCK) mean?

 
Previous Next
WSAEMFILE WSAEINPROGRESS

WSAEWOULDBLOCK

WSAEWOULDBLOCK means that a Winsock operation on a nonblocking socket cannot make progress immediately. It is normally a state notification, not proof that the connection or socket is broken.

Typical situations

It is commonly returned by connect while a nonblocking connection is still being established, by recv when no input is queued, and by accept when no client is waiting. The operation must not be retried in a tight loop.

What to do

  • For a pending connect, wait for the completion notification registered for the socket, such as select, WSAEventSelect, or WSAAsyncSelect.
  • For receive or accept, wait until the readiness mechanism reports data or a queued connection.
  • Keep the operation state in the application; a nonblocking call may need to be continued later.

Microsoft: connect · Microsoft: recv


Looking for a different code? Search another status or error code.