Skip to content

Commit

Permalink
Merge 7d0edd0 into db15e20
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-Der committed Jan 27, 2019
2 parents db15e20 + 7d0edd0 commit fe8eae9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion pkg/quic/internal/wrapper/quic.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ type Config struct {
}

var quicConfig = &quic.Config{
Versions: []quic.VersionNumber{101},
MaxIncomingStreams: 1000,
MaxIncomingUniStreams: -1, // disable unidirectional streams
MaxReceiveStreamFlowControlWindow: 3 * (1 << 20), // 3 MB
Expand Down
13 changes: 6 additions & 7 deletions rtcquictransport_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package webrtc

// TODO: figure out how to avoid leaking
/*
import (
"testing"
"time"
Expand Down Expand Up @@ -79,6 +77,7 @@ type testQuicStack struct {
gatherer *RTCIceGatherer
ice *RTCIceTransport
quic *RTCQuicTransport
api *API
}

func (s *testQuicStack) setSignal(sig *testQuicSignal, isOffer bool) error {
Expand Down Expand Up @@ -168,22 +167,24 @@ func newQuicPair() (stackA *testQuicStack, stackB *testQuicStack, err error) {
}

func newQuicStack() (*testQuicStack, error) {
api := NewAPI()
// Create the ICE gatherer
gatherer, err := NewRTCIceGatherer(RTCIceGatherOptions{})
gatherer, err := api.NewRTCIceGatherer(RTCIceGatherOptions{})
if err != nil {
return nil, err
}

// Construct the ICE transport
ice := NewRTCIceTransport(gatherer)
ice := api.NewRTCIceTransport(gatherer)

// Construct the Quic transport
qt, err := NewRTCQuicTransport(ice, nil)
qt, err := api.NewRTCQuicTransport(ice, nil)
if err != nil {
return nil, err
}

return &testQuicStack{
api: api,
gatherer: gatherer,
ice: ice,
quic: qt,
Expand Down Expand Up @@ -218,5 +219,3 @@ func signalQuicPair(stackA *testQuicStack, stackB *testQuicStack) error {

return flattenErrs(closeErrs)
}
*/

0 comments on commit fe8eae9

Please sign in to comment.