Skip to content

srt_connect behaviour on non-blocking mode #2819

Answered by ethouris
guilletrejo asked this question in Q&A
Discussion options

You must be logged in to vote

Broken sockets cannot be reused and there's no intended "infinite" value for SRTO_CONNTIMEO. So yes, the only solution is to recreate the socket on failure.

Not sure why you need non-blocking mode for such a scenario. You are doing the same thing as it would be with blocking mode, just with more idle calls.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@guilletrejo
Comment options

Answer selected by guilletrejo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants