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

[FR] Reason for closing a connection #2638

Open
maxsharabayko opened this issue Jan 31, 2023 · 0 comments
Open

[FR] Reason for closing a connection #2638

maxsharabayko opened this issue Jan 31, 2023 · 0 comments
Labels
[API] Area: Changes in SRT library API [core] Area: Changes in SRT library core help wanted Indicates that a maintainer wants help on an issue or pull request Type: Enhancement Indicates new feature requests
Milestone

Comments

@maxsharabayko
Copy link
Collaborator

maxsharabayko commented Jan 31, 2023

A connection can be closed by an idle timeout or due to a reason.

  1. API has to be extended to expose the reason why a socket was closed, e.g. int srt_brokenreason(SRTSOCKET s).
  2. The SHUTDOWN control packet has to be extended to allow reporting the reason for closing the connection. The reason may be SRT-internal one, or initiated by the application.
  3. If a connection is closed by the application, it can optionally provide the reason for closing it. Then the srt_close API function needs to be accompanied with srt_close_ext(SRTSOCKET s, int reason).

See also #478.

@maxsharabayko maxsharabayko added Type: Enhancement Indicates new feature requests [core] Area: Changes in SRT library core [API] Area: Changes in SRT library API labels Jan 31, 2023
@maxsharabayko maxsharabayko added this to the Major milestone Jan 31, 2023
@maxsharabayko maxsharabayko added the help wanted Indicates that a maintainer wants help on an issue or pull request label Aug 29, 2023
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 [core] Area: Changes in SRT library core help wanted Indicates that a maintainer wants help on an issue or pull request Type: Enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

1 participant