Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p-quic-transport
Commits
da0ed6c9
Unverified
Commit
da0ed6c9
authored
Aug 16, 2018
by
Steven Allen
Committed by
GitHub
Aug 16, 2018
Browse files
Merge pull request #31 from libp2p/update-deps
update to the latest quic-go, gx publish
parents
0dde69a0
ff7e4782
Changes
5
Hide whitespace changes
Inline
Side-by-side
.gx/lastpubver
View file @
da0ed6c9
0.
1
.0: Qm
Tdsv6AXU5LPLMiv369ga8sgp1wMpbkmZo4scAfgnqGRZ
0.
2
.0: Qm
VLaCVfWgjgtrAZsjk44nYG8GApxACymbsScmZJqVHMT1
conn.go
View file @
da0ed6c9
...
...
@@ -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.
...
...
listener.go
View file @
da0ed6c9
...
...
@@ -65,7 +65,7 @@ func (l *listener) Accept() (tpt.Conn, error) {
}
conn
,
err
:=
l
.
setupConn
(
sess
)
if
err
!=
nil
{
sess
.
Close
(
err
)
sess
.
Close
WithError
(
0
,
err
)
continue
}
return
conn
,
nil
...
...
package.json
View file @
da0ed6c9
...
...
@@ -9,15 +9,15 @@
"gxDependencies"
:
[
{
"author"
:
"marten-seemann"
,
"hash"
:
"Qm
PL1Q7edxM6bHUy7rNjo6izmVte7fSbii64kr21wqmoZ2
"
,
"hash"
:
"Qm
aC1ix7g4NP7eduKToNN3CwpzBsmoyBR4D7FwfmXCRHxt
"
,
"name"
:
"quic-go"
,
"version"
:
"0.
8
.0"
"version"
:
"0.
9
.0"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
W5LxJm2Yo3S7uVsfLM7NsJn2QnKbvZD7uYsZVYR7YViE
"
,
"hash"
:
"Qm
UMTtHxeyVJPrpcpvEQppH3uTf3g1NnkRC6C36LpXy2no
"
,
"name"
:
"go-libp2p-transport"
,
"version"
:
"3.0.
5
"
"version"
:
"3.0.
6
"
}
],
"gxVersion"
:
"0.11.0"
,
...
...
@@ -25,6 +25,6 @@
"license"
:
""
,
"name"
:
"go-libp2p-quic-transport"
,
"releaseCmd"
:
"git commit -a -m
\"
gx publish $VERSION
\"
"
,
"version"
:
"0.
1
.0"
"version"
:
"0.
2
.0"
}
transport.go
View file @
da0ed6c9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment