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
Describe the bug
Problem reproduced only for SRT socket working in blocking mode. When srt_rendezvous call is blocked trying to connect to the peer and srt_close is called for the socket in parallel thread then both srt_rendezvous and srt_close calls hung till SRTO_CONNTIMEO.
Expected behavior
srt_close should return right after call.
srt_rendezvous should return immediately after srt_close is called for the socket in parallel thread.
Desktop (please provide the following information):
OS: all OSes including Android/IOS where it was found
SRT Version / commit ID: 1.4.3/03dafd8981e680fec8ddb6437144227ca39284ff
The text was updated successfully, but these errors were encountered:
Could you please check with the fix in #2032? I tested it in the environment with other fixes related to "thread insanity" problems, but I made the fix as little invasive as possible.
@ethouris,
we've checked on several OSes and fix works fine. Thank you!
alexpokotilo
changed the title
[BUG] srt_rendezvous hungs after calling srt_close in different thread
[BUG] srt_rendezvous hangs after calling srt_close in different thread
Jun 2, 2021
Describe the bug
Problem reproduced only for SRT socket working in blocking mode. When srt_rendezvous call is blocked trying to connect to the peer and srt_close is called for the socket in parallel thread then both srt_rendezvous and srt_close calls hung till SRTO_CONNTIMEO.
This problem is introduced by this commit 03dafd8 and particularly by removing this line:
03dafd8#diff-70625c5a9e97bc3670abd5bfa05dd3cb0f847b9c6a81618cde939d6f104b0a86L1901
To Reproduce
Expected behavior
srt_close should return right after call.
srt_rendezvous should return immediately after srt_close is called for the socket in parallel thread.
Desktop (please provide the following information):
The text was updated successfully, but these errors were encountered: