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

[API] SRT_ECONNSOCK error message does not mention LISTENING and CONNECTING states #3065

Closed
maxsharabayko opened this issue Nov 5, 2024 · 0 comments · Fixed by #3102
Closed
Labels
[API] Area: Changes in SRT library API Type: Enhancement Indicates new feature requests
Milestone

Comments

@maxsharabayko
Copy link
Collaborator

A follow-up of a discussion in #3062:
Trying to set the listener callback on a socket that is in the listening state results in an error SRT_ECONNSOCK (MJ_NOTSUP + MN_ISCONNECTED). The textual representation of this error is "Cannot do this operation on a CONNECTED socket".

In this case, the error message is misleading. The socket is not in a connected state but in a listening state. The error message must be broader or separate errors must be defined for "CONNECTING" and "LISTENING" states. The latter requires API change.

@maxsharabayko maxsharabayko added Type: Enhancement Indicates new feature requests [API] Area: Changes in SRT library API labels Nov 5, 2024
@maxsharabayko maxsharabayko added this to the v1.6.0 milestone Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[API] Area: Changes in SRT library API Type: Enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant