locked
select() returning -1 abnormally RRS feed

  • Question

  • I am writing a server program. And using select() to poll the main socket for new connections. My code is correct, since it works the first time I poll, it works fine. But after a timeout (500 milliseconds), I cannot reuse the same readfds without clearing the list and setting the socket descriptor back into the list.

    Is this a bug in Winsock? This seems to work fine on Unix/Linux, so port to Windows may be complicated for me. And I want to avoid any changes that may deviate the original code between OSes. Any help here would be greatly appreciated.

    Thanks.

    Saturday, August 23, 2008 2:00 PM

All replies

  • hey I am facing same issue. did you got any solution fro this?

     

    thanks

    Rahul

    Thursday, September 4, 2008 4:45 PM