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
de1d6754
Commit
de1d6754
authored
May 13, 2016
by
Jeromy
Browse files
update muxers, includes yamux deadlock fix
parent
50d718fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
p2p/net/swarm/swarm.go
View file @
de1d6754
...
...
@@ -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
,
}
...
...
package.json
View file @
de1d6754
...
...
@@ -109,9 +109,9 @@
"version"
:
"0.0.0"
},
{
"hash"
:
"Qm
Wo4w5EybXUjBn9L7nsBneEPcLArq6fDMBWEFJ2Qny6Eq
"
,
"hash"
:
"Qm
b1US8uyZeEpMyc56wVZy2cDFdQjNFojAUYVCoo9ieTqp
"
,
"name"
:
"go-stream-muxer"
,
"version"
:
"
0
.0.0"
"version"
:
"
1
.0.0"
},
{
"hash"
:
"QmaaC9QMYTQHCbMq3Ebr3uMaAR2ev4AVqMmsJpgQijAZbJ"
,
...
...
@@ -129,9 +129,9 @@
"version"
:
"0.0.0"
},
{
"hash"
:
"Qm
cq3bs1zXXoougbpTtLRp7AravkCGBkVyCqJxZRk5qdwo
"
,
"hash"
:
"Qm
duCCgTaLnxwwf9RFQy2PMUytrKcEH9msohtVxSBZUdgu
"
,
"name"
:
"go-peerstream"
,
"version"
:
"
0
.0.0"
"version"
:
"
1
.0.0"
},
{
"author"
:
"whyrusleeping"
,
...
...
@@ -162,6 +162,24 @@
"hash"
:
"QmaLnS2kGBLuGZKJdT5KAyoWEtW3u8CS3h6YKCVge5ohD2"
,
"name"
:
"go-libp2p-transport"
,
"version"
:
"1.1.1"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"QmYaeRqthWTco7oQF4dztuqA94P8JF36gVjd2z2eEqKfrh"
,
"name"
:
"go-smux-yamux"
,
"version"
:
"1.1.0"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"QmVcmcQE9eX4HQ8QwhVXpoHt3ennG7d299NDYFq9D1Uqa1"
,
"name"
:
"go-smux-multistream"
,
"version"
:
"1.0.0"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"QmWMKNLGkYJTZ4Tq3DQ8E9j86QaKvGjKgFzvLzGYXvW69Z"
,
"name"
:
"go-smux-spdystream"
,
"version"
:
"1.0.0"
}
],
"gxVersion"
:
"0.4.0"
,
...
...
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