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

[core] Catch exception from connect_complete. #980

Merged
merged 2 commits into from
Nov 28, 2019

Conversation

maxsharabayko
Copy link
Collaborator

CUDTUnited::connect_complete(...) can throw an exception. It has to be handled. Refer too issue #971.
Alternative fix in #972 produces more changes, that can impact normal operation mode (without exception).

Further improvement of the socket closure while handshake is being processed should be performed.
This PR only fixes obviously uncaught exception.

CUDTUnited::connect_complete(...) can throw an exception. It has to be handled. Refer too issue Haivision#971.
@maxsharabayko maxsharabayko added Type: Bug Indicates an unexpected problem or unintended behavior [core] Area: Changes in SRT library core labels Nov 27, 2019
@maxsharabayko maxsharabayko added this to the v1.4.1 milestone Nov 27, 2019
@ethouris
Copy link
Collaborator

It doesn't make any sense.

The connect_complete function is used only ONCE. So better than throw and catch an exception is simply not throwing it.

@rndi rndi merged commit c1a1719 into Haivision:master Nov 28, 2019
@maxsharabayko maxsharabayko deleted the hotfix/connect-complete-catch branch April 22, 2020 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[core] Area: Changes in SRT library core Type: Bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants