]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/toss.go
Use explicitly larger bufio's buffer
[nncp.git] / src / toss.go
index 79cc50f496982c96b976c532fc47f327dfcdaf6c..d6c74c405cf069fc5f203525190a3b5315fd3b02 100644 (file)
@@ -1063,7 +1063,7 @@ func (ctx *Ctx) Toss(
                sharedKey, _, _, err = PktEncRead(
                        ctx.Self,
                        ctx.Neigh,
-                       bufio.NewReader(fd),
+                       bufio.NewReaderSize(fd, MTHBlockSize),
                        pipeWB,
                        sharedKey == nil,
                        sharedKey,