-
Notifications
You must be signed in to change notification settings - Fork 863
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
A list of API-related issues for bonding #1409
Comments
1)SRTO_MINVERSION was an application bug. Not an SRT lib issue. |
Updated the description. Thanks. Item removed:
|
Problem 2 is still there. As reported this is a documentation problem. There is no GROUPTYPE available in listen callback. If application want to reject call based on what the caller asked for and what the server is willing to provide this is the place to check. Also the group type is not set for a listen (only that this is a GROUPCONNECT) caller decides the type. I think the server shall be able to decide to accept or reject each individual connect. |
I tested problem 2 using
I used the nonblocking mode so that it's closer to your case (I detected a small bug in the app btw., which made the hook unavailable in the non-blocking mode). When I contact from a group caller, the result is:
When I contact from a single-socket connection:
|
As for Issue 3, it's more about a complaint for the current API and hard time for the application to keep control over the links, especially in non-blocking mode. This problem is to be solved by #1464. |
As reported by @jeandube
SRT Version:
Non-blocking mode using SRT "C" API
Note
Those issues listed further are to be confirmed.
The List of Issues
SRTO_GROUPTYPE
in listen_callback on listener socket fails - RESOLVED/FIXEDThe group socket is the one returned by srt_accept. So the doc (API.md) telling get(SRTO_GROUPTYPE) can only be
called from inside the listener callback handler is wrong as it assumes
srt_accept()
is called from thelisten_callback handler. While implementing SRT StreamID I added listen_callback handling but kept the
srt_accept in epoll event, which occurs after listen_callback.
Not sure if this is an issue as I am still trying to make a broadcast group of one(1) socket working.
listen_callback passes the actually connected socket while
srt_accept returns the group socket
According to bonding-into.md only 1st connection is handled this way.
Since subsequent connections details are only available from srt_group_data() what is the utility of passing
connected socket via listen_callback instead of the group socket directly.
srt_group_data(grp)
called aftergrp=srt_accept(...)
most fields are set in data[0] but not peeraddr
Workaround uses srt_getpeername(data[0].id,...
The text was updated successfully, but these errors were encountered: