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
d511af3d
Commit
d511af3d
authored
May 13, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update muxers, includes yamux deadlock fix
parent
f6fd598a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
swarm.go
swarm.go
+5
-5
No files found.
swarm.go
View file @
d511af3d
...
...
@@ -22,11 +22,11 @@ import (
ma
"github.com/jbenet/go-multiaddr"
ps
"github.com/jbenet/go-peerstream"
pst
"github.com/jbenet/go-stream-muxer"
psmss
"github.com/jbenet/go-stream-muxer/multistream"
spdy
"github.com/jbenet/go-stream-muxer/spdystream"
yamux
"github.com/jbenet/go-stream-muxer/yamux"
"github.com/jbenet/goprocess"
goprocessctx
"github.com/jbenet/goprocess/context"
psmss
"github.com/whyrusleeping/go-smux-multistream"
spdy
"github.com/whyrusleeping/go-smux-spdystream"
yamux
"github.com/whyrusleeping/go-smux-yamux"
mafilter
"github.com/whyrusleeping/multiaddr-filter"
context
"golang.org/x/net/context"
)
...
...
@@ -39,11 +39,11 @@ func init() {
msstpt
:=
psmss
.
NewBlankTransport
()
ymxtpt
:=
&
yamux
.
Transport
{
AcceptBacklog
:
8192
,
AcceptBacklog
:
1024
,
ConnectionWriteTimeout
:
time
.
Second
*
10
,
KeepAliveInterval
:
time
.
Second
*
30
,
EnableKeepAlive
:
true
,
MaxStreamWindowSize
:
uint32
(
1024
*
256
),
MaxStreamWindowSize
:
uint32
(
1024
*
512
),
LogOutput
:
ioutil
.
Discard
,
}
...
...
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