Commit 0581395b authored by Marten Seemann's avatar Marten Seemann
Browse files

update quic-go to v0.9.0, use the quic-go milestone version

parent 0dde69a0
......@@ -25,7 +25,7 @@ type conn struct {
var _ tpt.Conn = &conn{}
func (c *conn) Close() error {
return c.sess.Close(nil)
return c.sess.Close()
}
// IsClosed returns whether a connection is fully closed.
......
......@@ -65,7 +65,7 @@ func (l *listener) Accept() (tpt.Conn, error) {
}
conn, err := l.setupConn(sess)
if err != nil {
sess.Close(err)
sess.CloseWithError(0, err)
continue
}
return conn, nil
......
......@@ -9,9 +9,9 @@
"gxDependencies": [
{
"author": "marten-seemann",
"hash": "QmPL1Q7edxM6bHUy7rNjo6izmVte7fSbii64kr21wqmoZ2",
"hash": "QmaC1ix7g4NP7eduKToNN3CwpzBsmoyBR4D7FwfmXCRHxt",
"name": "quic-go",
"version": "0.8.0"
"version": "0.9.0"
},
{
"author": "whyrusleeping",
......
......@@ -19,11 +19,11 @@ import (
)
var quicConfig = &quic.Config{
Versions: []quic.VersionNumber{quic.VersionMilestone0_9_0},
MaxIncomingStreams: 1000,
MaxIncomingUniStreams: -1, // disable unidirectional streams
MaxReceiveStreamFlowControlWindow: 3 * (1 << 20), // 3 MB
MaxReceiveConnectionFlowControlWindow: 4.5 * (1 << 20), // 4.5 MB
Versions: []quic.VersionNumber{101},
AcceptCookie: func(clientAddr net.Addr, cookie *quic.Cookie) bool {
// TODO(#6): require source address validation when under load
return true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment