[Live-devel] Bug in windows version of the BasicTaskScheduler.cpp
Ross Finlayson
finlayson at live555.com
Tue Jul 28 04:57:18 PDT 2009
>I use live555 lib under windows.
I'm sorry :-)
>I check source code and found bug in BasicTaskScheduler.cpp
>In this file lines from line 73
[...]
>must look like this
>
>#if defined(__WIN32__) || defined(_WIN32)
> int err = WSAGetLastError();
> // For some unknown reason, select() in Windoze sometimes fails with
>WSAEINVAL if
> // it was called with no entries set in "readSet". If this happens,
>ignore it:
> if (err == WSAEINVAL && readSet.fd_count == 0) {
> err = EINTR; // err SHOULD be EINTR for the further comparision
[...]
>Is this right?
Yes, that will work. This issue (which apparently has been existed
for several versions now) will be fixed in the next release of the
software.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list