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

webrtc: add WebRTC transport #1655

Closed
wants to merge 65 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
ef185f4
WebRTC transport implementation
ckousik Jul 8, 2022
60d6e9e
remove bytes.Buffer from datachannel
ckousik Nov 18, 2022
d801b5c
fix staticcheck error
ckousik Nov 18, 2022
de05336
fix go fmt
ckousik Nov 18, 2022
96c0899
remove deadlines and cleanup
ckousik Nov 21, 2022
2464486
simplify read
ckousik Nov 22, 2022
6d37367
remove comments
ckousik Nov 28, 2022
433437e
rewrite udpmux
ckousik Nov 28, 2022
1c426a2
rewrite mux
ckousik Nov 28, 2022
fa8010b
remove default multihash
ckousik Nov 28, 2022
e8453ad
go mod tidy
ckousik Nov 28, 2022
1701b89
simplify mux
ckousik Nov 28, 2022
2e65c7d
better deadlines
ckousik Nov 28, 2022
cea2557
minor packetbuffer tests
ckousik Nov 28, 2022
b1bcf29
add unwrap to error type
ckousik Nov 28, 2022
6632095
add test for stream closure
ckousik Nov 29, 2022
b6a33d4
fix gofmt
ckousik Nov 29, 2022
48ab83d
maxbuffersize fix
ckousik Dec 2, 2022
c7cc27f
fix
ckousik Dec 2, 2022
7cc271d
fix read
ckousik Dec 2, 2022
3aa333d
fix
ckousik Dec 2, 2022
e3228aa
fix deadlock
ckousik Dec 2, 2022
9b51205
added tests
ckousik Dec 5, 2022
b8bde3f
start readloop on first read call
ckousik Dec 5, 2022
7d48528
fix issue
ckousik Dec 5, 2022
6081523
update pion
ckousik Dec 6, 2022
5a54581
Add comment
ckousik Dec 6, 2022
e0c7f25
remove example
ckousik Dec 6, 2022
1bc7c7e
gofmt
ckousik Dec 6, 2022
ee3e979
fix test
ckousik Dec 6, 2022
2c7578b
address review
ckousik Dec 7, 2022
1cfdae8
add reset to packetqueue
ckousik Dec 7, 2022
cea86fb
more comments
ckousik Dec 7, 2022
cfc5b7f
updated webrtc/v3 with setReadDeadline
ckousik Dec 12, 2022
67683fc
tidy
ckousik Dec 12, 2022
3258011
address regression in pion/datachannel
ckousik Dec 13, 2022
aec4b9c
force close
ckousik Dec 13, 2022
6329af2
Workaround for datachannel closure
ckousik Dec 13, 2022
320d047
use buffers from pool for connections
ckousik Dec 14, 2022
99c9659
add test for stream closure
ckousik Dec 19, 2022
c7dffaa
fix staticcheck error
ckousik Dec 19, 2022
c7c1ed0
address review
ckousik Jan 7, 2023
8409639
stream and connection limiting
ckousik Jan 8, 2023
0f5a089
fix test
ckousik Jan 8, 2023
f90c634
revert to uint32
ckousik Jan 8, 2023
fdbb178
fixes
ckousik Jan 9, 2023
2aa8e2b
fix receiveMTU
ckousik Jan 9, 2023
f59a656
update ice version
ckousik Jan 9, 2023
cd5e06a
fix sdp test
ckousik Jan 9, 2023
75ddec6
temporarily skip test
ckousik Jan 9, 2023
a125544
simplify packetqueue
ckousik Jan 10, 2023
e7bd1e1
fix 1 layer of race conditions
ckousik Jan 10, 2023
99e7c05
cleanup
ckousik Jan 10, 2023
cb74d23
more cleanup
ckousik Jan 11, 2023
ea5987c
string benchmarks
ckousik Jan 11, 2023
4af5cd1
grow builder
ckousik Jan 11, 2023
9f760b1
benchmark packetqueue and prevent panic on close
ckousik Jan 11, 2023
9ca5597
document lock in packetqueue
ckousik Jan 11, 2023
1bdfea7
explicit arguments in sdp functions
ckousik Jan 12, 2023
00ec1e5
fix default return value of getSupported hashes
ckousik Jan 12, 2023
91634b6
move to go:generate
ckousik Jan 12, 2023
ab21d09
polish from load tests
ckousik Jan 14, 2023
648c02a
update go mod
ckousik Jan 14, 2023
33bf244
update testplans go.mod
ckousik Jan 14, 2023
115caff
update protoc version
ckousik Jan 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 29 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,34 @@ require (
github.com/multiformats/go-multistream v0.3.3
github.com/multiformats/go-varint v0.0.7
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58
github.com/pion/datachannel v1.5.5
github.com/pion/dtls/v2 v2.1.5
github.com/pion/ice/v2 v2.2.13
github.com/pion/logging v0.2.2
github.com/pion/stun v0.3.5
github.com/pion/webrtc/v3 v3.1.50
github.com/prometheus/client_golang v1.14.0
github.com/raulk/go-watchdog v1.3.0
github.com/stretchr/testify v1.8.1
go.opencensus.io v0.24.0
go.uber.org/fx v1.18.2
go.uber.org/goleak v1.1.12
golang.org/x/crypto v0.3.0
golang.org/x/crypto v0.5.0
golang.org/x/sync v0.1.0
golang.org/x/sys v0.3.0
golang.org/x/sys v0.4.0
golang.org/x/tools v0.3.0
google.golang.org/protobuf v1.28.1
)

require (
github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/containerd/cgroups v1.0.4 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgraph-io/badger v1.6.2 // indirect
github.com/dgraph-io/ristretto v0.0.2 // indirect
github.com/dgraph-io/ristretto v0.1.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/elastic/gosigar v0.14.2 // indirect
Expand All @@ -76,42 +81,54 @@ require (
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.0.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/pprof v0.0.0-20221203041831-ce31453925ec // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/huin/goupnp v1.0.3 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/jbenet/goprocess v0.1.4 // indirect
github.com/klauspost/cpuid/v2 v2.2.1 // indirect
github.com/klauspost/cpuid/v2 v2.2.3 // indirect
github.com/koron/go-ssdp v0.0.3 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/libp2p/go-cidranger v1.1.0 // indirect
github.com/marten-seemann/qpack v0.3.0 // indirect
github.com/marten-seemann/qtls-go1-18 v0.1.3 // indirect
github.com/marten-seemann/qtls-go1-19 v0.1.1 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/miekg/dns v1.1.50 // indirect
github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect
github.com/multiformats/go-base36 v0.2.0 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/ginkgo/v2 v2.5.1 // indirect
github.com/opencontainers/runtime-spec v1.0.2 // indirect
github.com/pion/interceptor v0.1.12 // indirect
github.com/pion/mdns v0.0.5 // indirect
github.com/pion/randutil v0.1.0 // indirect
github.com/pion/rtcp v1.2.10 // indirect
github.com/pion/rtp v1.7.13 // indirect
github.com/pion/sctp v1.8.5 // indirect
github.com/pion/sdp/v3 v3.0.6 // indirect
github.com/pion/srtp/v2 v2.0.11 // indirect
github.com/pion/transport v0.14.1 // indirect
github.com/pion/turn/v2 v2.0.9 // indirect
github.com/pion/udp v0.1.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/syndtr/goleveldb v1.0.0 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/dig v1.15.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/exp v0.0.0-20221205204356-47842c84f3db // indirect
golang.org/x/mod v0.7.0 // indirect
golang.org/x/net v0.3.0 // indirect
golang.org/x/text v0.5.0 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/text v0.6.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/blake3 v1.1.7 // indirect
)
123 changes: 105 additions & 18 deletions go.sum

Large diffs are not rendered by default.

Loading