I did a search on MSDN and got a couple of hits. See here and here.
However, I do not develop anything in WinSock, but on Unix, as implemented by Select , you need to reset fd_set each time Select . Perhaps the same applies to the implementation of WinSock Select. If so, your readList, writeList may get corrupted after the Select returns, leading to the error you specified. Just a thought.
Aditya sehgal
source share