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
Commits
ec85e0bb
Commit
ec85e0bb
authored
Mar 08, 2016
by
Jeromy
Browse files
bump yamux backlog setting way up
parent
955ae93a
Changes
3
Show whitespace changes
Inline
Side-by-side
p2p/net/swarm/swarm.go
View file @
ec85e0bb
...
@@ -38,7 +38,7 @@ func init() {
...
@@ -38,7 +38,7 @@ func init() {
msstpt
:=
psmss
.
NewBlankTransport
()
msstpt
:=
psmss
.
NewBlankTransport
()
ymxtpt
:=
&
yamux
.
Transport
{
ymxtpt
:=
&
yamux
.
Transport
{
AcceptBacklog
:
2048
,
AcceptBacklog
:
8192
,
ConnectionWriteTimeout
:
time
.
Second
*
10
,
ConnectionWriteTimeout
:
time
.
Second
*
10
,
KeepAliveInterval
:
time
.
Second
*
30
,
KeepAliveInterval
:
time
.
Second
*
30
,
EnableKeepAlive
:
true
,
EnableKeepAlive
:
true
,
...
...
p2p/net/swarm/swarm_listen.go
View file @
ec85e0bb
...
@@ -12,8 +12,9 @@ import (
...
@@ -12,8 +12,9 @@ import (
ps
"gx/ipfs/QmZK81vcgMhpb2t7GNbozk7qzt6Rj4zFqitpvsWT9mduW8/go-peerstream"
ps
"gx/ipfs/QmZK81vcgMhpb2t7GNbozk7qzt6Rj4zFqitpvsWT9mduW8/go-peerstream"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr"
)
// Open listeners and reuse-dialers for the given addresses
)
// Open listeners and reuse-dialers for the given addresses
func
(
s
*
Swarm
)
setupInterfaces
(
addrs
[]
ma
.
Multiaddr
)
error
{
func
(
s
*
Swarm
)
setupInterfaces
(
addrs
[]
ma
.
Multiaddr
)
error
{
errs
:=
make
([]
error
,
len
(
addrs
))
errs
:=
make
([]
error
,
len
(
addrs
))
var
succeeded
int
var
succeeded
int
...
...
p2p/test/reconnects/reconnect_test.go
View file @
ec85e0bb
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