From: Sergey Matveev Date: Tue, 9 Nov 2021 09:31:21 +0000 (+0300) Subject: Fixed freq.chunked calculation X-Git-Tag: v8.0.1^2~1 X-Git-Url: http://www.git.cypherpunks.ru/?p=nncp.git;a=commitdiff_plain;h=55b235efb2f86748c0466d50cdfecf685b72ab71 Fixed freq.chunked calculation --- diff --git a/doc/news.ru.texi b/doc/news.ru.texi index 697d0a1..1599730 100644 --- a/doc/news.ru.texi +++ b/doc/news.ru.texi @@ -1,6 +1,16 @@ @node Новости @section Новости +@node Релиз 8.0.1 +@subsection Релиз 8.0.1 +@itemize + +@item +Исправлено некорректное вычисление @code{freq.chunked} значения, при +отсутствии которого всё равно форсированно включалась chunked передача. + +@end itemize + @node Релиз 8.0.0 @subsection Релиз 8.0.0 @itemize diff --git a/doc/news.texi b/doc/news.texi index 1cf64c5..9a2e380 100644 --- a/doc/news.texi +++ b/doc/news.texi @@ -3,6 +3,16 @@ See also this page @ref{Новости, on russian}. +@node Release 8_0_1 +@section Release 8.0.1 +@itemize + +@item +Fixed incorrect @code{freq.chunked} value calculation. If it missed, +then anyway chunked transfer mode was forcefully turned on. + +@end itemize + @node Release 8_0_0 @section Release 8.0.0 @itemize diff --git a/src/cfg.go b/src/cfg.go index 55c9dd0..d46bf0e 100644 --- a/src/cfg.go +++ b/src/cfg.go @@ -191,7 +191,7 @@ func NewNode(name string, cfg NodeJSON) (*Node, error) { } var freqPath *string - freqChunked := int64(MaxFileSize) + var freqChunked int64 var freqMinSize int64 freqMaxSize := int64(MaxFileSize) if cfg.Freq != nil { diff --git a/src/nncp.go b/src/nncp.go index 3bf6d1a..b56be29 100644 --- a/src/nncp.go +++ b/src/nncp.go @@ -40,7 +40,7 @@ along with this program. If not, see .` const Base32Encoded32Len = 52 var ( - Version string = "8.0.0" + Version string = "8.0.1" Base32Codec *base32.Encoding = base32.StdEncoding.WithPadding(base32.NoPadding) )