You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using cyberlink in iOS project for a while, and I noticed in some networks I have issue with device discovery.
I narrowed down an issues and found that after parsing SSD-header, when ssdp listener thread is trying to retrieve a device description it just blocks on connect, in the case when TCP-connection gets dropped on RST.
So I think you should also has a timeout mechanism on connect().
(I resolved it by setting a socket to non-blocking mode, then using select() with timeout, and after select returns, setting the socket back to blocking mode)
The text was updated successfully, but these errors were encountered:
uhurden
changed the title
(Description retrieval error): Connection reset by peer.
csocket - connect() needs to have a timeout mechanism (for TCP-connection drop)
Jul 4, 2014
Hi cybergarage,
I have been using cyberlink in iOS project for a while, and I noticed in some networks I have issue with device discovery.
I narrowed down an issues and found that after parsing SSD-header, when ssdp listener thread is trying to retrieve a device description it just blocks on connect, in the case when TCP-connection gets dropped on RST.
So I think you should also has a timeout mechanism on connect().
(I resolved it by setting a socket to non-blocking mode, then using select() with timeout, and after select returns, setting the socket back to blocking mode)
The text was updated successfully, but these errors were encountered: