public inbox for nncp-devel@lists.stargrave.org
Atom feed
From: Frank Doepper <nncp@woffs•de>
To: Sergey Matveev <stargrave@stargrave•org>
Cc: nncp-devel@lists.cypherpunks.ru
Subject: Re: [nncp-devel] EOF while decoding 8 bytes / message authentication failed
Date: Fri, 20 Dec 2019 15:04:04 +0100 (CET) [thread overview]
Message-ID: <alpine.LNX.2.21.1912201503390.10284@lapdoepp> (raw)
In-Reply-To: <20191220135106.GA68213@stargrave.org>
Am 20.12.19 um 16:51 schrieb Sergey Matveev:
> *** 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.
This is fully ok. Just needs to be documented. (Or have I overlooked it?)
:)
> >How to set -onlinedeadline for nncp-daemon?
>
> Only through per-node onlinedeadline option in configuration file.
Fine. I'll test again.
Best regards,
Frank
next prev parent reply other threads:[~2019-12-20 14:08 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
2019-12-20 14:04 ` Frank Doepper [this message]
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