Article View: news.software.readers
Article #265698Re: [flnews 1.1.0] configure timeout for nntp connection to a server
From: Michael Bäuerle
Date: Wed, 31 Aug 2022 12:38
Date: Wed, 31 Aug 2022 12:38
75 lines
3154 bytes
3154 bytes
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?
Technical Details
Message-ID:
<AABjD1ZKpPsAAAX3.A3.flnews@WStation5.stz-e.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<tencfv$eg9$1@shakotay.alphanet.ch>Show Full Headers
Complete Article Headers
Message-ID: <AABjD1ZKpPsAAAX3.A3.flnews@WStation5.stz-e.de> Subject: Re: [flnews 1.1.0] configure timeout for nntp connection to a server Date: Wed, 31 Aug 2022 12:38:34 +0000 From: Michael Bäuerle <michael.baeuerle@stz-e.de> References: <tencfv$eg9$1@shakotay.alphanet.ch> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.readers Lines: 75 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)