Skip to content

Commit

Permalink
Merge pull request #1 from libp2p/fix/no-read-buffer
Browse files Browse the repository at this point in the history
fix: don't buffer reads
  • Loading branch information
Stebalien authored May 22, 2019
2 parents c35c511 + a59b684 commit f73d3f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions p2p/muxer/yamux/yamux.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ func init() {
config.MaxStreamWindowSize = uint32(16 * 1024 * 1024)
// don't spam
config.LogOutput = ioutil.Discard
// We always run over a security transport that buffers internally
// (i.e., uses a block cipher).
config.ReadBufSize = 0
DefaultTransport = (*Transport)(config)
}

Expand Down

0 comments on commit f73d3f6

Please sign in to comment.