Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-swarm
Commits
c5b42f8c
Commit
c5b42f8c
authored
Mar 08, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bump yamux backlog setting way up
parent
780c661f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
swarm.go
swarm.go
+1
-1
swarm_listen.go
swarm_listen.go
+3
-2
No files found.
swarm.go
View file @
c5b42f8c
...
...
@@ -38,7 +38,7 @@ func init() {
msstpt
:=
psmss
.
NewBlankTransport
()
ymxtpt
:=
&
yamux
.
Transport
{
AcceptBacklog
:
2048
,
AcceptBacklog
:
8192
,
ConnectionWriteTimeout
:
time
.
Second
*
10
,
KeepAliveInterval
:
time
.
Second
*
30
,
EnableKeepAlive
:
true
,
...
...
swarm_listen.go
View file @
c5b42f8c
...
...
@@ -12,8 +12,9 @@ import (
ps
"gx/ipfs/QmZK81vcgMhpb2t7GNbozk7qzt6Rj4zFqitpvsWT9mduW8/go-peerstream"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
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
{
errs
:=
make
([]
error
,
len
(
addrs
))
var
succeeded
int
...
...
@@ -152,7 +153,7 @@ func (s *Swarm) connHandler(c *ps.Conn) *Conn {
if
err
!=
nil
{
log
.
Debug
(
err
)
log
.
Event
(
ctx
,
"newConnHandlerDisconnect"
,
lgbl
.
NetConn
(
c
.
NetConn
()),
lgbl
.
Error
(
err
))
c
.
Close
()
// boom. close it.
c
.
Close
()
// boom. close it.
return
nil
}
...
...
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