]> Cypherpunks.ru repositories - nncp.git/commitdiff
Merge branch 'develop' v5.3.2
authorSergey Matveev <stargrave@stargrave.org>
Sat, 28 Dec 2019 11:49:29 +0000 (14:49 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 28 Dec 2019 11:49:29 +0000 (14:49 +0300)
VERSION
doc/download.texi
doc/install.texi
doc/news.ru.texi
doc/news.texi
makedist.sh
ports/nncp/Makefile
src/sp.go

diff --git a/VERSION b/VERSION
index c7cb1311a645f7c6c54caec24df8040e7e21e4fb..84197c89467dd225393910da7c61a7a480822820 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5.3.1
+5.3.2
index 01f7d89af22b9f3cbb0709b640b173b8496da6b5..42b779d5ef50befcacc518480abf3f943af2be79 100644 (file)
@@ -24,6 +24,10 @@ Tarballs include all necessary required libraries:
 @multitable {XXXXX} {XXXX-XX-XX} {XXXX KiB} {link sign} {xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
 @headitem Version @tab Date @tab Size @tab Tarball @tab SHA256 checksum
 
+@item @ref{Release 5.3.1, 5.3.1} @tab 2019-12-25 @tab 1117 KiB
+@tab @url{download/nncp-5.3.1.tar.xz, link} @url{download/nncp-5.3.1.tar.xz.sig, sign}
+@tab @code{23A52819 F0395A6A E05E4176 017DCA3C 4A20A023 EEADA6A3 3168E58D BEE34A5B}
+
 @item @ref{Release 5.3.0, 5.3.0} @tab 2019-12-22 @tab 1112 KiB
 @tab @url{download/nncp-5.3.0.tar.xz, link} @url{download/nncp-5.3.0.tar.xz.sig, sign}
 @tab @code{9F093115 506D00E7 2E41ACD6 3F283172 8430E1C2 8BA4A941 FFA3C65D 89AD4ED0}
index 413de36fe72141c48f12c95632c0b95a8b7d5cf3..55d14999ec8900103142d5df26d4965f2b9ffab0 100644 (file)
@@ -1,7 +1,7 @@
 @node Installation
 @unnumbered Installation
 
-@set VERSION 5.3.1
+@set VERSION 5.3.2
 
 Possibly NNCP package already exists for your distribution:
 
index 73614086900f782c20ac8764481d6091c50682cf..791f14e8762726419b3d5174d9490a5983bf09e8 100644 (file)
@@ -1,6 +1,17 @@
 @node Новости
 @section Новости
 
+@node Релиз 5.3.2
+@subsection Релиз 5.3.2
+@itemize
+
+@item
+Исправлена некорректная логика @option{onlinedeadline} timeout-а, при
+котором соединение могло не учитывать факты прихода пакетов и обрывать
+связь.
+
+@end itemize
+
 @node Релиз 5.3.1
 @subsection Релиз 5.3.1
 @itemize
index 697ced820b0f27caa86fc4f0733a5bd6a211c2c3..671f6e3bfe9238ad884b82d3cb9a1c6af1c98175 100644 (file)
@@ -3,6 +3,17 @@
 
 See also this page @ref{Новости, on russian}.
 
+@node Release 5.3.2
+@section Release 5.3.2
+@itemize
+
+@item
+Fixed incorrect logic of @option{onlinedeadline} timeout, where
+connection won't take into account incoming packets events and will
+forcefully disconnect.
+
+@end itemize
+
 @node Release 5.3.1
 @section Release 5.3.1
 @itemize
index d8ba2e8b0baec39ea56f8080c73caf857f4472d1..21368a2a555f1b32965e1372bd4c06209a1c320f 100755 (executable)
@@ -140,8 +140,6 @@ cat > $texi <<EOF
 EOF
 makeinfo --plaintext -o NEWS.RU $texi
 
-rm -f $texi
-
 cat > $texi <<EOF
 \input texinfo
 @documentencoding UTF-8
@@ -150,7 +148,6 @@ cat > $texi <<EOF
 @bye
 EOF
 makeinfo --plaintext -o INSTALL $texi
-rm -f $texi
 
 cat > $texi <<EOF
 \input texinfo
@@ -160,6 +157,7 @@ cat > $texi <<EOF
 @bye
 EOF
 makeinfo --plaintext -o THANKS $texi
+
 rm -f $texi
 
 ########################################################################
index 00943d5dadeec95779be89bb0c14eee2caa914b8..3efb3ea011d4bca4740fbc7b029d2748e6604f34 100644 (file)
@@ -1,7 +1,7 @@
 # $FreeBSD: $
 
 PORTNAME=      nncp
-DISTVERSION=   5.3.1
+DISTVERSION=   5.3.2
 CATEGORIES=    net
 MASTER_SITES=  http://www.nncpgo.org/download/
 
index aca6f18c1824caf6d5908609b88c22841cb29c59..37cf265ead11ac3588fcb66eab69f7641599cc9c 100644 (file)
--- a/src/sp.go
+++ b/src/sp.go
@@ -851,6 +851,9 @@ func (state *SPState) ProcessSP(payload []byte) ([][]byte, error) {
                        state.Ctx.LogE("sp-process", sds, err, "")
                        return nil, err
                }
+               if head.Type != SPTypePing {
+                       state.RxLastNonPing = state.RxLastSeen
+               }
                switch head.Type {
                case SPTypeHalt:
                        state.Ctx.LogD("sp-process", SdsAdd(sds, SDS{"type": "halt"}), "")
@@ -1086,9 +1089,6 @@ func (state *SPState) ProcessSP(payload []byte) ([][]byte, error) {
                        )
                        return nil, BadPktType
                }
-               if head.Type != SPTypePing {
-                       state.RxLastNonPing = state.RxLastSeen
-               }
        }
        if infosGot {
                var pkts int