Unverified Commit da0ed6c9 authored by Steven Allen's avatar Steven Allen Committed by GitHub
Browse files

Merge pull request #31 from libp2p/update-deps

update to the latest quic-go, gx publish
parents 0dde69a0 ff7e4782
0.1.0: QmTdsv6AXU5LPLMiv369ga8sgp1wMpbkmZo4scAfgnqGRZ 0.2.0: QmVLaCVfWgjgtrAZsjk44nYG8GApxACymbsScmZJqVHMT1
...@@ -25,7 +25,7 @@ type conn struct { ...@@ -25,7 +25,7 @@ type conn struct {
var _ tpt.Conn = &conn{} var _ tpt.Conn = &conn{}
func (c *conn) Close() error { func (c *conn) Close() error {
return c.sess.Close(nil) return c.sess.Close()
} }
// IsClosed returns whether a connection is fully closed. // IsClosed returns whether a connection is fully closed.
......
...@@ -65,7 +65,7 @@ func (l *listener) Accept() (tpt.Conn, error) { ...@@ -65,7 +65,7 @@ func (l *listener) Accept() (tpt.Conn, error) {
} }
conn, err := l.setupConn(sess) conn, err := l.setupConn(sess)
if err != nil { if err != nil {
sess.Close(err) sess.CloseWithError(0, err)
continue continue
} }
return conn, nil return conn, nil
......
...@@ -9,15 +9,15 @@ ...@@ -9,15 +9,15 @@
"gxDependencies": [ "gxDependencies": [
{ {
"author": "marten-seemann", "author": "marten-seemann",
"hash": "QmPL1Q7edxM6bHUy7rNjo6izmVte7fSbii64kr21wqmoZ2", "hash": "QmaC1ix7g4NP7eduKToNN3CwpzBsmoyBR4D7FwfmXCRHxt",
"name": "quic-go", "name": "quic-go",
"version": "0.8.0" "version": "0.9.0"
}, },
{ {
"author": "whyrusleeping", "author": "whyrusleeping",
"hash": "QmW5LxJm2Yo3S7uVsfLM7NsJn2QnKbvZD7uYsZVYR7YViE", "hash": "QmUMTtHxeyVJPrpcpvEQppH3uTf3g1NnkRC6C36LpXy2no",
"name": "go-libp2p-transport", "name": "go-libp2p-transport",
"version": "3.0.5" "version": "3.0.6"
} }
], ],
"gxVersion": "0.11.0", "gxVersion": "0.11.0",
...@@ -25,6 +25,6 @@ ...@@ -25,6 +25,6 @@
"license": "", "license": "",
"name": "go-libp2p-quic-transport", "name": "go-libp2p-quic-transport",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"", "releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "0.1.0" "version": "0.2.0"
} }
...@@ -19,11 +19,11 @@ import ( ...@@ -19,11 +19,11 @@ import (
) )
var quicConfig = &quic.Config{ var quicConfig = &quic.Config{
Versions: []quic.VersionNumber{quic.VersionMilestone0_9_0},
MaxIncomingStreams: 1000, MaxIncomingStreams: 1000,
MaxIncomingUniStreams: -1, // disable unidirectional streams MaxIncomingUniStreams: -1, // disable unidirectional streams
MaxReceiveStreamFlowControlWindow: 3 * (1 << 20), // 3 MB MaxReceiveStreamFlowControlWindow: 3 * (1 << 20), // 3 MB
MaxReceiveConnectionFlowControlWindow: 4.5 * (1 << 20), // 4.5 MB MaxReceiveConnectionFlowControlWindow: 4.5 * (1 << 20), // 4.5 MB
Versions: []quic.VersionNumber{101},
AcceptCookie: func(clientAddr net.Addr, cookie *quic.Cookie) bool { AcceptCookie: func(clientAddr net.Addr, cookie *quic.Cookie) bool {
// TODO(#6): require source address validation when under load // TODO(#6): require source address validation when under load
return true 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