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

Obey Transport protocol #366

Closed
wants to merge 4 commits into from
Closed

Obey Transport protocol #366

wants to merge 4 commits into from

Conversation

swagggpickle
Copy link

@swagggpickle swagggpickle commented May 4, 2021

Description

The purpose of this PR is to add a check for transportation protocol before attempting to connect via UDP to server.

Using the latest version of coturn implementation with the no-udp flag specified and a strict firewall preventing UDP traffic one would observe that the ice candidate gathering takes 5 seconds. After some investigation I found that the transport=tcp flag was not being obeyed within the gatherCandidatesSrflx function.

Related issue

#367

@swagggpickle swagggpickle marked this pull request as draft May 4, 2021 01:52
@swagggpickle swagggpickle marked this pull request as ready for review May 4, 2021 01:53
@Sean-Der
Copy link
Member

Sean-Der commented May 4, 2021

Fantastic work @swagggpickle this looks right to me. I will double check some stuff and then merge this ASAP :)

Mind adding yourself to the README?

@codecov
Copy link

codecov bot commented May 4, 2021

Codecov Report

Merging #366 (b8c659f) into master (1f4e18f) will decrease coverage by 0.25%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #366      +/-   ##
==========================================
- Coverage   78.49%   78.24%   -0.26%     
==========================================
  Files          33       33              
  Lines        2581     2583       +2     
==========================================
- Hits         2026     2021       -5     
- Misses        388      396       +8     
+ Partials      167      166       -1     
Flag Coverage Δ
go 78.24% <100.00%> (-0.26%) ⬇️
wasm 25.66% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
gather.go 67.42% <100.00%> (+0.18%) ⬆️
udp_mux.go 71.31% <0.00%> (-7.38%) ⬇️
agent.go 82.18% <0.00%> (+0.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1f4e18f...b8c659f. Read the comment docs.

@swagggpickle
Copy link
Author

@Sean-Der Sure thing I will add myself to the README. I will also add to the unit test to ensure coverage.

gather.go Outdated Show resolved Hide resolved
@swagggpickle
Copy link
Author

@Sean-Der Hi, Do you have a status update?

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants