Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug: wrong reject reason on async connect #1480

Merged
merged 1 commit into from
Aug 17, 2020

Conversation

ethouris
Copy link
Collaborator

  1. The fix for the case when the connection process ended up in rejection, but it was running in background (async). In this case the SRT_REJ_TIMEOUT code was set forcefully, even though this execution path was due to a TTL timer reset to zero, which means that it wasn't an expired timeout, but forceful break due to rejection. The fix: for a case with zero TTL, the reject reason is set only in case when it wasn't set (unlikely, but just as a safety fallback), and in general it's believed that the correct rejection reason is set already.

  2. A small fix in reporting the error by srt-live-transmit: as with introducing the forced error code (case of non-blocking mode connect), the srt_getlasterror_str call is also not correct. Instead the message for the possibly enforced error code should be displayed.

@ethouris ethouris added Priority: High Type: Bug Indicates an unexpected problem or unintended behavior [apps] Area: Test applications related improvements [core] Area: Changes in SRT library core Impact: Significant labels Aug 17, 2020
@ethouris ethouris added this to the v1.5.0 - Sprint 21 milestone Aug 17, 2020
@ethouris ethouris requested a review from maxsharabayko August 17, 2020 10:27
@ethouris ethouris self-assigned this Aug 17, 2020
@maxsharabayko
Copy link
Collaborator

A small fix in reporting the error by srt-live-transmit: as with introducing the forced error code (case of non-blocking mode connect), the srt_getlasterror_str call is also not correct. Instead the message for the possibly enforced error code should be displayed.

Looks like there is only a fix for srt-test-live.

@ethouris
Copy link
Collaborator Author

This application is the only one that reads the error for connection in non-blocking mode and displays it.

@maxsharabayko maxsharabayko merged commit 4aa6fbb into Haivision:master Aug 17, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 21, v1.4.2 Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[apps] Area: Test applications related improvements [core] Area: Changes in SRT library core Priority: High Type: Bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants