[Live-devel] windows winsock error 10038

Andrey ashvyrkin at gosniias.ru
Tue Jun 18 00:44:54 PDT 2013


Thanks for the quick reply. However, the error occurs even if the test 
code testOnDemandRTSPServer reuseFirstSource set to True. I have not 
changed anything in the code, except the reuseFirstSource. The error 
occurs on the socket fClientInputSocket of RTSPServer.cpp. Closing the 
socket occurs after the call closeSockets () in the destructor ~ 
RTSPClientConnection (), respectively, which is called when the session 
with the client. The functions of the closeSockets () before closing the 
socket is called disableBackgroundHandling (fClientInputSocket). The 
idea is all right, and select () function should not be to access a 
closed socket. However, after repeated reconnect the client to the 
server in the select () function generates an error. The problem arises 
only when the true meaning of reuseFirstSource and multiple client 
reconnects to the server. Perhaps the problem is 
disableBackgroundHandling, in any case, the error is random and can 
occur as a reconnection with the client, and more than a hundred.


More information about the live-devel mailing list