Added timeout reason. Updated correctly reject reason on timeout#1194
Conversation
|
It does not look right to mix connection rejection reason and connection timeout. |
|
It's not possible to be done via You'd need to add a new field that will remember the operation status in the socket. The call to For implementation in the groups I don't even have an idea - especially that the same id can be simultaneously used for sending data and connecting a new link, which is also done in the background, so theoretically an error on the group for connecting would have to be stored differently than any other error, or we'd have to make a very specialized function that would be used exclusively to get the connection errors in order to maintain interchangeability between sockets and groups in the API. |
|
The problem this PR is addressing is getting the reason for a non-blocking connection to fail.
Calling This PR reuses |
There was a problem hiding this comment.
Requested changes
- Update description of
srt_getrejectreason(..)
(post-fix pending) Co-authored-by: stevomatthews <smatthews@haivision.com>
|
The documentation should also provide a guideline for when to call srt_getrejectionreason(..) in a non-blocking mode. |
Fixes #1164