Commit Graph

17 Commits

Author SHA1 Message Date
Pion
d3e1775d73 Update CI configs to v0.4.7
Update lint scripts and CI configs.
2020-09-26 08:54:24 -07:00
Atsushi Watanabe
b2fbb12d0a Run TestRemoteLocalAddr in VNet
Avoid being affected by bridged network interfaces.
2020-07-05 22:23:59 -07:00
Atsushi Watanabe
66ad7f1218 Fix data race in TestWriteUseValidPair
Variable err is unexpectedly captured by goroutine.
2020-07-05 22:22:46 -07:00
Sam Lancia
a4a53ab443 Agent: Frequent candidate check when connecting
Previously in the connecting phase, a gathered peer reflexive candidate
which is by default nominated after 500mS, would have to wait 2s
(default taskLoopInterval) before being nominated.
2020-07-05 17:45:01 +09:00
Sean DuBois
bd57bd814c Make Credential getters thread safe
GetRemoteUserCredentials and GetLocalUserCredentials were
not thread safe. This puts them both behind a .run
2020-06-29 19:37:25 -07:00
Atsushi Watanabe
47186b5abd Fix timeout check order
Timeout check must be inside the scope of routine leak check.
Routine leak check internally has wait for routine exit which
may causes timeout error in some case.
2020-06-26 11:16:59 -07:00
Sean DuBois
3b47033146 Remove non-trickle ICE
pion/webrtc@v3 will be trickle by default, so removing
support from here.  Users can easily simulate non-trickle
by setting a OnICECandidate callback.

This just reduces the amount of things we need to test/worry about.
2020-06-25 00:16:58 -07:00
Sean DuBois
5a7603837b Set defaultKeepaliveInterval to 2 seconds
This should be lower then defaultDisconnectTimeout otherwise
we are going to enter disconnected.

Also rename defaultDisconnectTimeout -> defaultDisconnectedTimeout
to make the tense consistent with other options

Resolves #190
2020-06-25 00:16:58 -07:00
Sean DuBois
0c308ea365 Rename ConnectionTimeout -> DisconnectTimeout
ICE has two distinct states `Disconnected` and `Failed`. We need to
split out these arguments so that we can control (and test) both.

Relates to #190
2020-06-21 01:06:53 -07:00
Sean DuBois
a7be7f1607 Use best valid pair for Write
Before Write would only use the selected pair, now it also uses the best
valid pair. This behavior is specified in the RFC.

```
Before selected pairs have
been produced for a data stream, any valid pair associated with a
component of a data stream can be used for sending and receiving
data for the component
```

Resolves #187
2020-05-22 22:35:55 -07:00
Sean DuBois
b1fbbcc01e Don't unset the selected pair on timeout
The selected pair must NEVER be cleared. Instead we
should keep sending connectivity checks on it. If we go to failed the
user will then create a new PeerConnection or do an iceRestart.
In the future we may support nominations, but not standardized yet.

This test asserts that we can move from
Connected -> Disconnected -> Connected

Resolves #186
2020-05-22 22:35:55 -07:00
Atsushi Watanabe
384b91c787 Migrate test to turn/v2
Use turn v2 API in vnet based test.
2020-01-29 22:57:23 -08:00
Atsushi Watanabe
d001618082 Support WASM build/test
Some tests using net.Conn connection are disabled for now
as it is not fully supported by WASM MVP stage.
2020-01-13 08:51:13 +09:00
Sean DuBois
e161aa966e Update to pion/transport@v0.8.10
Tests now assert for routine leaks on startup as well
2019-10-31 09:54:40 -07:00
Yutaka Takeda
867a355033 Support 1:1 NAT option
Relates to pion/webrtc#835
2019-09-24 11:51:07 -07:00
Yutaka Takeda
c316a9f7b3 Fix lint errors
pion/webrtc#712
2019-07-15 01:00:21 -07:00
Hugo Arregui
b3e05469f0 Add vnet support with the new pion/turn client
Relates to pion/webrtc#712
2019-07-15 01:00:21 -07:00