public inbox for nncp-devel@lists.stargrave.org
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
To: nncp-devel@lists.cypherpunks.ru
Subject: Re: [nncp-devel] EOF while decoding 8 bytes / message authentication failed
Date: Fri, 20 Dec 2019 16:51:06 +0300 [thread overview]
Message-ID: <20191220135106.GA68213@stargrave.org> (raw)
In-Reply-To: <alpine.LNX.2.21.1912201231160.10284@lapdoepp>
[-- Attachment #1: Type: text/plain, Size: 865 bytes --]
*** Frank Doepper [2019-12-20 12:32]:
>If the connection should end after the smaller of both ends' value, I
>wonder why "nncp-call -onlinedeadline 2 otherhost" still lasts exactly 10
>seconds in my case (empty queue on both sides, no onlinedeadline config
>line in config file).
Oh, this is another code's peculiarity. Reading/writing is done with:
conn.SetReadDeadline(time.Now().Add(DefaultDeadline * time.Second)),
where DefaultDeadline is 10 (seconds). So goroutine "ticks" every 10sec
by default and that is why lower onlinedeadline values are not checked
earlier. I will look how to easily change the logic of that.
>How to set -onlinedeadline for nncp-daemon?
Only through per-node onlinedeadline option in configuration file.
--
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: CF60 E89A 5923 1E76 E263 6422 AE1A 8109 E498 57EF
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2019-12-20 13:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-13 9:19 [nncp-devel] EOF while decoding 8 bytes / message authentication failed Frank Doepper
2019-12-13 16:20 ` Sergey Matveev
2019-12-17 15:26 ` Frank Doepper
2019-12-20 9:01 ` Sergey Matveev
2019-12-20 11:32 ` Frank Doepper
2019-12-20 13:51 ` Sergey Matveev [this message]
2019-12-20 14:04 ` Frank Doepper
2019-12-22 18:30 ` Sergey Matveev
2019-12-22 20:17 ` Shawn K. Quinn
2019-12-22 20:42 ` Sergey Matveev
2019-12-24 11:59 ` Frank Doepper
2019-12-25 13:41 ` Sergey Matveev
2019-12-25 14:46 ` Frank Doepper
2019-12-28 12:05 ` Sergey Matveev
2019-12-28 17:51 ` Frank Doepper