Skip to content

Commit

Permalink
Merge pull request #54 from libp2p/quic-go-0.11.0
Browse files Browse the repository at this point in the history
update quic-go to v0.11.0
  • Loading branch information
Stebalien authored Apr 4, 2019
2 parents 3dd3b2f + 9259704 commit 6cca441
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions p2p/transport/quic/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ var _ = Describe("Connection", func() {
// dial, but expect the wrong peer ID
_, err = clientTransport.Dial(context.Background(), serverAddr, thirdPartyID)
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(ContainSubstring("TLS handshake error: bad certificate"))
Expect(err.Error()).To(ContainSubstring("CRYPTO_ERROR"))
Consistently(serverConnChan).ShouldNot(Receive())
})

Expand Down Expand Up @@ -165,7 +165,7 @@ var _ = Describe("Connection", func() {
Expect(err).ToNot(HaveOccurred())
_, err = clientTransport.Dial(context.Background(), serverAddr, serverID)
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(ContainSubstring("TLS handshake error: bad certificate"))
Expect(err.Error()).To(ContainSubstring("CRYPTO_ERROR"))
Consistently(serverConnChan).ShouldNot(Receive())
})

Expand Down
7 changes: 3 additions & 4 deletions p2p/transport/quic/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ type stream struct {
var _ smux.Stream = &stream{}

func (s *stream) Reset() error {
if err := s.Stream.CancelRead(0); err != nil {
return err
}
return s.Stream.CancelWrite(0)
s.Stream.CancelRead(0)
s.Stream.CancelWrite(0)
return nil
}
1 change: 0 additions & 1 deletion p2p/transport/quic/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
)

var quicConfig = &quic.Config{
Versions: []quic.VersionNumber{quic.VersionMilestone0_10_0},
MaxIncomingStreams: 1000,
MaxIncomingUniStreams: -1, // disable unidirectional streams
MaxReceiveStreamFlowControlWindow: 3 * (1 << 20), // 3 MB
Expand Down

0 comments on commit 6cca441

Please sign in to comment.