X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Ftoss.go;h=0c27289e2cf55359ed8398f58d086c1b1eb97c88;hb=b47dbfe6687569650fa544a4ecf3e4ea388390cb;hp=84890343a86b67777d672a4d7a6571b2be1a0577;hpb=887ea7ab9d0d957cd0b4566c28985c7d84a5832f;p=nncp.git diff --git a/src/toss.go b/src/toss.go index 8489034..0c27289 100644 --- a/src/toss.go +++ b/src/toss.go @@ -619,11 +619,11 @@ func jobProcess( if err != nil { panic(err) } - if _, err = ctx.Tx( + if _, _, err = ctx.Tx( node, pktTrns, nice, - int64(pktSize), 0, + int64(pktSize), 0, MaxFileSize, pipeR, pktName, nil, @@ -750,8 +750,14 @@ func jobProcess( } if nodeId != sender.Id && nodeId != pktEnc.Sender { ctx.LogI("rx-area-echo", lesEcho, logMsgNode) - if _, err = ctx.Tx( - node, &pkt, nice, int64(pktSize), 0, fullPipeR, pktName, nil, + if _, _, err = ctx.Tx( + node, + &pkt, + nice, + int64(pktSize), 0, MaxFileSize, + fullPipeR, + pktName, + nil, ); err != nil { ctx.LogE("rx-area", lesEcho, err, logMsgNode) return err @@ -862,6 +868,7 @@ func jobProcess( nil, ) if err != nil { + ctx.LogE("rx-area-pkt-enc-read2", les, err, logMsg) pipeW.CloseWithError(err) <-errs return err