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
0581395b
Commit
0581395b
authored
Aug 16, 2018
by
Marten Seemann
Browse files
update quic-go to v0.9.0, use the quic-go milestone version
parent
0dde69a0
Changes
4
Hide whitespace changes
Inline
Side-by-side
conn.go
View file @
0581395b
...
...
@@ -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 @
0581395b
...
...
@@ -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 @
0581395b
...
...
@@ -9,9 +9,9 @@
"gxDependencies"
:
[
{
"author"
:
"marten-seemann"
,
"hash"
:
"Qm
PL1Q7edxM6bHUy7rNjo6izmVte7fSbii64kr21wqmoZ2
"
,
"hash"
:
"Qm
aC1ix7g4NP7eduKToNN3CwpzBsmoyBR4D7FwfmXCRHxt
"
,
"name"
:
"quic-go"
,
"version"
:
"0.
8
.0"
"version"
:
"0.
9
.0"
},
{
"author"
:
"whyrusleeping"
,
...
...
transport.go
View file @
0581395b
...
...
@@ -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