Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

24 Apr, 2024: Testing a new version of the Overboard here. If you have an issue post about it to rocksolid.nodes.help (I know. Everyone on Usenet has issues)


computers / news.software.readers / Re: [flnews 1.1.0] configure timeout for nntp connection to a server

SubjectAuthor
* [flnews 1.1.0] configure timeout for nntp connection to a serveryamo'
`* Re: [flnews 1.1.0] configure timeout for nntp connection to a serverMichael Bäuerle
 `* Re: [flnews 1.1.0] configure timeout for nntp connection to a serveryamo'
  `* Re: [flnews 1.1.0] configure timeout for nntp connection to a serveryamo'
   `* Re: [flnews 1.1.0] configure timeout for nntp connection to a serverMichael Bäuerle
    `* Re: [flnews 1.1.0] configure timeout for nntp connection to a serveryamo'
     `* Re: [flnews 1.1.0] configure timeout for nntp connection to a serverMichael Bäuerle
      `- Re: [flnews 1.1.0] configure timeout for nntp connection to a serveryamo'

1
[flnews 1.1.0] configure timeout for nntp connection to a server

<tencfv$eg9$1@shakotay.alphanet.ch>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1128&group=news.software.readers#1128

  copy link   Newsgroups: news.software.readers
Path: i2pn2.org!i2pn.org!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail
From: yam...@beurdin.invalid (yamo')
Newsgroups: news.software.readers
Subject: [flnews 1.1.0] configure timeout for nntp connection to a server
Date: Wed, 31 Aug 2022 12:17:33 +0200
Organization: http://pasdenom.info/news.html
Message-ID: <tencfv$eg9$1@shakotay.alphanet.ch>
Reply-To: news@pasdenom.info
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Aug 2022 10:17:35 -0000 (UTC)
Injection-Info: shakotay.alphanet.ch; posting-account="yamo";
logging-data="14857"; mail-complaints-to="usenet@alphanet.ch"; posting-host="f287617bb37da2ea0dbb18cfd32046a7.nnrp.alphanet.ch"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Firefox/68.0
Cancel-Lock: sha256:GNjNPF1tnMCOv9/5eSqZFVBGa2nhIiy9w5tK9iIrzBI=
X-Mozilla-News-Host: news://news.alphanet.ch:119
 by: yamo' - Wed, 31 Aug 2022 10:17 UTC

Hi,

At starting of flnews, it is blocked : it waiting a reply of an
inaccessible server.

Status : Busy / Refreching subscribed newsgroups

It should be configurable or by default small enought maybe 5 seconds.

Thanks,
--
Stéphane

Re: [flnews 1.1.0] configure timeout for nntp connection to a server

<AABjD1ZKpPsAAAX3.A3.flnews@WStation5.stz-e.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1129&group=news.software.readers#1129

  copy link   Newsgroups: news.software.readers
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: michael....@stz-e.de (Michael Bäuerle)
Newsgroups: news.software.readers
Subject: Re: [flnews 1.1.0] configure timeout for nntp connection to a server
Date: Wed, 31 Aug 2022 14:38:34 +0200 (CEST)
Lines: 75
Message-ID: <AABjD1ZKpPsAAAX3.A3.flnews@WStation5.stz-e.de>
References: <tencfv$eg9$1@shakotay.alphanet.ch>
Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
X-Trace: individual.net 4nbREBmCwBC8TBwVipcHRwb8VFtODY5+cjEWqPZTpCVIWy/KWv
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:Rcjx4lnc2jyVFQo5UAqscyUIM5w= sha256:aT+8uYBYcn27oxm1w2M7rKRAGLppR7s+25KHU1LdA2g= sha1:TGESHCi8mmsQom45BQYCkzKnxvo=
Injection-Date: Wed, 31 Aug 2022 12:38:34 -0000
User-Agent: flnews/1.2.0pre3 (for NetBSD)
 by: Michael Bäuerle - Wed, 31 Aug 2022 12:38 UTC

yamo' wrote:
>
> At starting of flnews, it is blocked : it waiting a reply of an
> inaccessible server.
>
> Status : Busy / Refreching subscribed newsgroups
>
> It should be configurable or by default small enought maybe 5 seconds.

I have tried to reproduce this with multiples setups and compared the
behaviour with a connection via telnet:

Server name cannot be resolved
==============================

| $ telnet news.example 119
| news.example: No address associated with hostname

flnews error messages on terminal:
|
| flnews: INET: getaddrinfo() failed
| flnews: INET: No address associated with hostname
| flnews: NNTP: Cannot connect to server
| [Second attempt]

No significant delay/blocking was observed.

Server name can be resolved, but no NNTP service available
==========================================================

| $ telnet Server 119
| Trying 192.168.199.123...
| telnet: Unable to connect to remote host

flnews error messages on terminal:
|
| flnews: INET: Connection refused
| flnews: NNTP: Cannot connect to server
| [Second attempt]

"Server" was an existing internal Server without NNTP service.
No significant delay/blocking was observed.

Server name can be resolved, no NNTP service, no connection reset
=====================================================================

| $ telnet www.google.com 119
| Trying 172.217.168.228...
| [Delay]
| telnet: Unable to connect to remote host

flnews error messages on terminal:
|
| [Delay]
| flnews: INET: connect() failed
| flnews: NNTP: Cannot connect to server
| [Second attempt]

Server has not refused the connection here.
connect() failed after timeout of the operating system.
The observed delay for flnews was twice as long (because of the second
attempt).
While waiting for the connection the thread for the GUI was not blocked.
It was possible to terminate flnews via GUI (or with Ctrl-C via SIGINT).

Conclusion:
Does not look wrong in general. flnews behaves similar to other
programs (but retry after first error).

Can you confirm that the problem you have falls into the third category
above?

Re: [flnews 1.1.0] configure timeout for nntp connection to a server

<tepm7a$84n$1@shakotay.alphanet.ch>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1132&group=news.software.readers#1132

  copy link   Newsgroups: news.software.readers
Path: i2pn2.org!i2pn.org!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail
From: yam...@beurdin.invalid (yamo')
Newsgroups: news.software.readers
Subject: Re: [flnews 1.1.0] configure timeout for nntp connection to a server
Date: Thu, 1 Sep 2022 09:15:52 +0200
Organization: http://pasdenom.info/news.html
Message-ID: <tepm7a$84n$1@shakotay.alphanet.ch>
References: <tencfv$eg9$1@shakotay.alphanet.ch>
<AABjD1ZKpPsAAAX3.A3.flnews@WStation5.stz-e.de>
Reply-To: news@pasdenom.info
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 1 Sep 2022 07:15:54 -0000 (UTC)
Injection-Info: shakotay.alphanet.ch; posting-account="yamo";
logging-data="8343"; mail-complaints-to="usenet@alphanet.ch"; posting-host="f287617bb37da2ea0dbb18cfd32046a7.nnrp.alphanet.ch"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Firefox/68.0
Cancel-Lock: sha256:KbOvSaJZ5jRGEUuSOo2lB8DfVuXrl+KnK5vaH2Yq3mA=
In-Reply-To: <AABjD1ZKpPsAAAX3.A3.flnews@WStation5.stz-e.de>
 by: yamo' - Thu, 1 Sep 2022 07:15 UTC

Hi Michael,

Michael Bäuerle a écrit :
> yamo' wrote:
>>
>> At starting of flnews, it is blocked : it waiting a reply of an
>> inaccessible server.
>>
>> Status : Busy / Refreching subscribed newsgroups
>>
>> It should be configurable or by default small enought maybe 5 seconds.
>
> I have tried to reproduce this with multiples setups and compared the
> behaviour with a connection via telnet:

> Server name can be resolved, but no NNTP service available
> ==========================================================
> Server name can be resolved, no NNTP service, no connection reset
> =====================================================================
> Can you confirm that the problem you have falls into the third category
> above?
>

It is a server which is actually inaccessible (mine pasdenom.info:563
fiber broken...). DNS is OK

I don't see the difference between the two last categories.

I have an account configured with user/pass and at the start I cannot go
to Edit/Server and have to wait for a long timeout.

$ nc pasdenom.info nntp
#Nothing happen during a very long time...
$

I didn't tried on port 563, I don't know if netcat can speak on a TLS
connection.

Thanks,

--
Stéphane

Re: [flnews 1.1.0] configure timeout for nntp connection to a server

<tepmaj$84n$2@shakotay.alphanet.ch>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1133&group=news.software.readers#1133

  copy link   Newsgroups: news.software.readers
Path: i2pn2.org!i2pn.org!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail
From: yam...@beurdin.invalid (yamo')
Newsgroups: news.software.readers
Subject: Re: [flnews 1.1.0] configure timeout for nntp connection to a server
Date: Thu, 1 Sep 2022 09:17:39 +0200
Organization: http://pasdenom.info/news.html
Message-ID: <tepmaj$84n$2@shakotay.alphanet.ch>
References: <tencfv$eg9$1@shakotay.alphanet.ch>
<AABjD1ZKpPsAAAX3.A3.flnews@WStation5.stz-e.de>
<tepm7a$84n$1@shakotay.alphanet.ch>
Reply-To: news@pasdenom.info
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 1 Sep 2022 07:17:40 -0000 (UTC)
Injection-Info: shakotay.alphanet.ch; posting-account="yamo";
logging-data="8343"; mail-complaints-to="usenet@alphanet.ch"; posting-host="f287617bb37da2ea0dbb18cfd32046a7.nnrp.alphanet.ch"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Firefox/68.0
Cancel-Lock: sha256:R806bmGIYN7djWX1LF2s1asXR3dmdyxkNj0oNmB4F5Y=
In-Reply-To: <tepm7a$84n$1@shakotay.alphanet.ch>
 by: yamo' - Thu, 1 Sep 2022 07:17 UTC

Hi,
yamo' a écrit :
> I have an account configured with user/pass and at the start I cannot go
> to Edit/Server and have to wait for a long timeout.

I had (after a long time, it is possible to edit the server).

--
Stéphane

Re: [flnews 1.1.0] configure timeout for nntp connection to a server

<AABjEQFrMNYAAAtl.A3.flnews@Server4.micha.freeshell.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1136&group=news.software.readers#1136

  copy link   Newsgroups: news.software.readers
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: michael....@gmx.net (Michael Bäuerle)
Newsgroups: news.software.readers
Subject: Re: [flnews 1.1.0] configure timeout for nntp connection to a server
Date: Thu, 1 Sep 2022 19:00:59 -0000
Lines: 26
Message-ID: <AABjEQFrMNYAAAtl.A3.flnews@Server4.micha.freeshell.org>
References: <tencfv$eg9$1@shakotay.alphanet.ch> <AABjD1ZKpPsAAAX3.A3.flnews@WStation5.stz-e.de> <tepm7a$84n$1@shakotay.alphanet.ch> <tepmaj$84n$2@shakotay.alphanet.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net eqwYyR/EDEmMVYlJXBjNsg/kjZ19hIB4vvbSj2Fb83NJMOwKqM
X-Orig-Path: not-for-mail
Cancel-Lock: sha256:bpKLQNXfH6lxwwBd4a1g7OLR3+8GsUwxEt39wCcBgQk= sha1:K7xntw/ki81XRb5gnK0oIYHpDVM=
Injection-Date: Thu, 1 Sep 2022 19:00:59 -0000
User-Agent: flnews/1.1.0 (for HP-UX)
 by: Michael Bäuerle - Thu, 1 Sep 2022 19:00 UTC

yamo' wrote:
> yamo' a écrit :
> >
> > I have an account configured with user/pass and at the start I cannot
> > go to Edit/Server and have to wait for a long timeout.
>
> I had (after a long time, it is possible to edit the server).

I see. The server configuration window in the GUI is blocked until the
idle state is reached.

I'm currently working on a user configurable connection timeout.
The first attempt has not worked as expected. I will be back when I
have something that works.

In the meantime you can use this workaround:
- Close the program
- Open the configfile with a text editor
With standard configuration: "~/.config/flnews/configfile"
- Search for the entry "server:"
You can enter a working server name directly.
Or you can insert garbage (something that cannot be resolved).
- Save the configfile
- Start program again
A server entry that does not resolve should quickly fail, and make
the server configuration window accessible again.

Re: [flnews 1.1.0] configure timeout for nntp connection to a server

<tesdtp$p15$1@shakotay.alphanet.ch>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1137&group=news.software.readers#1137

  copy link   Newsgroups: news.software.readers
Path: i2pn2.org!i2pn.org!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail
From: yam...@beurdin.invalid (yamo')
Newsgroups: news.software.readers
Subject: Re: [flnews 1.1.0] configure timeout for nntp connection to a server
Date: Fri, 2 Sep 2022 10:12:41 +0200
Organization: http://pasdenom.info/news.html
Message-ID: <tesdtp$p15$1@shakotay.alphanet.ch>
References: <tencfv$eg9$1@shakotay.alphanet.ch>
<AABjD1ZKpPsAAAX3.A3.flnews@WStation5.stz-e.de>
<tepm7a$84n$1@shakotay.alphanet.ch> <tepmaj$84n$2@shakotay.alphanet.ch>
<AABjEQFrMNYAAAtl.A3.flnews@Server4.micha.freeshell.org>
Reply-To: news@pasdenom.info
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Sep 2022 08:12:41 -0000 (UTC)
Injection-Info: shakotay.alphanet.ch; posting-account="yamo";
logging-data="25637"; mail-complaints-to="usenet@alphanet.ch"; posting-host="f287617bb37da2ea0dbb18cfd32046a7.nnrp.alphanet.ch"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Firefox/68.0
Cancel-Lock: sha256:hmRzCd6bxLybbvmWQeuDNWmMpHR/wJULtXFqCxnS1eM=
In-Reply-To: <AABjEQFrMNYAAAtl.A3.flnews@Server4.micha.freeshell.org>
 by: yamo' - Fri, 2 Sep 2022 08:12 UTC

Hi,
Michael Bäuerle a écrit :
> I'm currently working on a user configurable connection timeout.
> The first attempt has not worked as expected. I will be back when I
> have something that works.

Thanks a lot for your work!

--
Stéphane

Re: [flnews 1.1.0] configure timeout for nntp connection to a server

<AABjEdl--uMAAEeZ.A3.flnews@WStation5.stz-e.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1139&group=news.software.readers#1139

  copy link   Newsgroups: news.software.readers
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: michael....@stz-e.de (Michael Bäuerle)
Newsgroups: news.software.readers
Subject: Re: [flnews 1.1.0] configure timeout for nntp connection to a server
Date: Fri, 2 Sep 2022 12:22:55 +0200 (CEST)
Lines: 33
Message-ID: <AABjEdl--uMAAEeZ.A3.flnews@WStation5.stz-e.de>
References: <tencfv$eg9$1@shakotay.alphanet.ch> <AABjD1ZKpPsAAAX3.A3.flnews@WStation5.stz-e.de> <tepm7a$84n$1@shakotay.alphanet.ch> <tepmaj$84n$2@shakotay.alphanet.ch> <AABjEQFrMNYAAAtl.A3.flnews@Server4.micha.freeshell.org> <tesdtp$p15$1@shakotay.alphanet.ch>
Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net NmXYTlG9soXO0J0jlQGm9wtEgI0J37IcC8p8+MeLYQzRCTjLHb
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:WVEJY1NHeOvkZOQQrpaPkyPMPao= sha256:ZXMEULs/QsMMuGy5XEm4I5XgCE8SnQ3gltlWuWKZxtA= sha1:obIqNp4aY0Pj9XCz5xG3nnZfwdQ=
Injection-Date: Fri, 2 Sep 2022 10:22:55 -0000
User-Agent: flnews/1.2.0pre5 (for NetBSD)
 by: Michael Bäuerle - Fri, 2 Sep 2022 10:22 UTC

yamo' wrote:
> Michael Bäuerle a écrit :
> >
> > I'm currently working on a user configurable connection timeout.
> > The first attempt has not worked as expected. I will be back when I
> > have something that works.
>
> Thanks a lot for your work!

<https://micha.freeshell.org/flnews/src/flnews-1.2.0pre5.tar.bz2>
Size(flnews-1.2.0pre5.tar.bz2)= 1197684
SHA2-256(flnews-1.2.0pre5.tar.bz2)= 6144cadd2777568a7e6f817ed8823bee2ca829e156a6b27ef9080382d69473e3

The snapshot above supports a user defined TCP connection timeout with
the new compile time option CFG_TCP_CONNECT_TIMEOUT in the file CONFIG.
The value is interpreted as seconds, 0 uses the default timeout from
the operating system (former behaviour).

I have set 5 seconds for testing. Therefore at build time the config
rule (make config) should display:
|
| [...]
| Store TCP connection timeout ... 5 seconds
| [...]

Note that this timeout is used for every connection attempt. And one
retry is executed for every IP address returned by getaddrinfo().
If this new timeout is detected at runtime, the message on the terminal
should look like this:
|
| [...]
| flnews: INET: User defined TCP connection timeout
| [...]

Re: [flnews 1.1.0] configure timeout for nntp connection to a server

<tf4qvp$3ivrb$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1143&group=news.software.readers#1143

  copy link   Newsgroups: news.software.readers
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: yam...@beurdin.invalid (yamo')
Newsgroups: news.software.readers
Subject: Re: [flnews 1.1.0] configure timeout for nntp connection to a server
Date: Mon, 5 Sep 2022 14:44:41 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <tf4qvp$3ivrb$1@dont-email.me>
References: <tencfv$eg9$1@shakotay.alphanet.ch> <AABjD1ZKpPsAAAX3.A3.flnews@WStation5.stz-e.de> <tepm7a$84n$1@shakotay.alphanet.ch> <tepmaj$84n$2@shakotay.alphanet.ch> <AABjEQFrMNYAAAtl.A3.flnews@Server4.micha.freeshell.org> <tesdtp$p15$1@shakotay.alphanet.ch> <AABjEdl--uMAAEeZ.A3.flnews@WStation5.stz-e.de>
Reply-To: yamo' <yamo@groumpf.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 5 Sep 2022 12:44:41 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="fa2dd46e7fc525b24f97b4324e939a57";
logging-data="3768171"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bE59APOsrxAYCsVuFMb5y"
User-Agent: flnews/1.2.0pre5 (for GNU/Linux)
Cancel-Lock: sha1:xWnYv4Izyn6YPu7K+fTcvNVHiFU=
 by: yamo' - Mon, 5 Sep 2022 12:44 UTC

Hi Michael,

Michael Bäuerle wrote:
>
>
> The snapshot above supports a user defined TCP connection timeout with
> the new compile time option CFG_TCP_CONNECT_TIMEOUT in the file CONFIG.
> The value is interpreted as seconds, 0 uses the default timeout from
> the operating system (former behaviour).

I didn't edit anything and it works very well.

flnews 1.2 isn't blocked by a server that didn't reply!

Best regards,
--
Stéphane

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor