in reply to nonblocking socket back to blocking

If you're using select on the socket why don't you just select for reading? That way whenever select returns you know there's data to read, and it doesn't matter if you block or not.

As for your stated question, sockets are normally set to block operations. Something in your code has set it to non-blocking; remove that part of your code.

  • Comment on Re: nonblocking socket back to blocking