Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
galene
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
galene
Commits
3a9f6339
Commit
3a9f6339
authored
Jan 14, 2021
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce delays in RelayTest.
parent
25ce8ef6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
ice/ice.go
ice/ice.go
+10
-1
No files found.
ice/ice.go
View file @
3a9f6339
...
@@ -125,10 +125,19 @@ func ICEConfiguration() *webrtc.Configuration {
...
@@ -125,10 +125,19 @@ func ICEConfiguration() *webrtc.Configuration {
}
}
func
RelayTest
()
(
time
.
Duration
,
error
)
{
func
RelayTest
()
(
time
.
Duration
,
error
)
{
conf
:=
ICEConfiguration
()
conf
:=
ICEConfiguration
()
conf2
:=
*
conf
conf2
:=
*
conf
conf2
.
ICETransportPolicy
=
webrtc
.
ICETransportPolicyRelay
conf2
.
ICETransportPolicy
=
webrtc
.
ICETransportPolicyRelay
pc1
,
err
:=
webrtc
.
NewPeerConnection
(
conf2
)
var
s
webrtc
.
SettingEngine
s
.
SetHostAcceptanceMinWait
(
0
)
s
.
SetSrflxAcceptanceMinWait
(
0
)
s
.
SetPrflxAcceptanceMinWait
(
0
)
s
.
SetRelayAcceptanceMinWait
(
0
)
api
:=
webrtc
.
NewAPI
(
webrtc
.
WithSettingEngine
(
s
))
pc1
,
err
:=
api
.
NewPeerConnection
(
conf2
)
if
err
!=
nil
{
if
err
!=
nil
{
return
0
,
err
return
0
,
err
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment