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

[FIX] Changed conditions for setting callbacks #2683

Conversation

ethouris
Copy link
Collaborator

@ethouris ethouris commented Mar 7, 2023

The conditions for srt_listen_callback and srt_connect_callback are that they can only be modified prior to listening or connecting, simultaneously they can be also set to NULL.

The conditions for `srt_listen_callback` and `srt_connect_callback` are that they can only be modified prior to listening or connecting, simultaneously they can be also set to NULL.
@ethouris ethouris marked this pull request as ready for review March 7, 2023 10:40
@ethouris ethouris added Type: Bug Indicates an unexpected problem or unintended behavior [core] Area: Changes in SRT library core [API] Area: Changes in SRT library API labels Mar 9, 2023
@ethouris ethouris added this to the v1.6.0 milestone Mar 9, 2023
Copy link
Collaborator

@maxsharabayko maxsharabayko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add this new error code (SRT_ECONNSOCK ?) to the srt_listen_callback and srt_connect_callback error codes.

@codecov-commenter
Copy link

Codecov Report

Merging #2683 (ceccae6) into master (0d804ec) will decrease coverage by 0.23%.
Report is 1 commits behind head on master.
The diff coverage is 66.66%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master    #2683      +/-   ##
==========================================
- Coverage   67.05%   66.82%   -0.23%     
==========================================
  Files         102      102              
  Lines       20277    20280       +3     
==========================================
- Hits        13597    13553      -44     
- Misses       6680     6727      +47     
Files Changed Coverage Δ
srtcore/srt_c_api.cpp 46.32% <ø> (-0.09%) ⬇️
srtcore/core.h 71.08% <50.00%> (-1.07%) ⬇️
test/test_listen_callback.cpp 91.52% <100.00%> (+0.07%) ⬆️

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@maxsharabayko maxsharabayko merged commit 83d91af into master Sep 19, 2023
10 of 12 checks passed
@maxsharabayko maxsharabayko deleted the 2635-maint-setting-listener-or-caller-callback-should-require-pre-or-pre-bind-condition branch September 19, 2023 06:22
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 Type: Bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MAINT] Setting listener or caller callback should require PRE or PRE-BIND condition.
3 participants