[Live-devel] openRTSP exit() in BasicTaskScheduler::SingleStep() due to socket error 10038(WSAENOTSOCK)

Brain Lai brainlai at gmail.com
Wed Apr 23 03:48:00 PDT 2008


Dear Sir:

Build from the latest source with VC6 on Windows XP.

The openRTSP calls exit() in BasicTaskScheduler::SingleStep() on receiving
multicast streaming from AXIS IP camera(that is, forceMulticastUnspecified
should be set True) on some PCs while others not.

After doing some tracing, I add the following code to print debugging
information about the sockets to select before exit():

void BasicTaskScheduler::SingleStep(unsigned maxDelayTime) {
.....
#if !defined(_WIN32_WCE)
    perror("BasicTaskScheduler::SingleStep(): select() fails");
#endif

fprintf(stderr, "BasicTaskScheduler::SingleStep(): select() fails with ret
%d, err %d\n", selectResult, err);
HandlerIterator iter(*fReadHandlers);
HandlerDescriptor* handler;
while ((handler = iter.next()) != NULL) {
        bool inReadSet = FD_ISSET(handler->socketNum, &readSet) ? true :
false;
        bool infReadSet = FD_ISSET(handler->socketNum, &fReadSet) ? true :
false;
        fprintf(fp, "BasicTaskScheduler::SingleStep(): sock %d %s readSet,
%s fReadSet\n",
                        handler->socketNum, inReadSet ? "in" : "not in",
infReadSet ? "in" : "not in");
}
exit(0);
.....
}

The output are as follows:
BasicTaskScheduler::SingleStep(): select() fails: No Error
BasicTaskScheduler::SingleStep(): select() fails with ret -1, err 10038
BasicTaskScheduler::SingleStep(): sock 1212 in readSet, in fReadSet
BasicTaskScheduler::SingleStep(): sock 992 in readSet, in fReadSet
BasicTaskScheduler::SingleStep(): sock 916 in readSet, in fReadSet
BasicTaskScheduler::SingleStep(): sock 1272 in readSet, in fReadSet
BasicTaskScheduler::SingleStep(): sock 1044 in readSet, in fReadSet

Only some PCs(running Windows XP) have such a problem while others not.
Any ideas?

Also, no problem with the testMPEG4VideoStreamer(no need to set
forMulticastUnspecified) on such PCs.

BR.
Brain Lai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20080423/560c19c0/attachment.html 


More information about the live-devel mailing list