Article View: news.software.readers
Article #265708Re: [flnews 1.1.0] configure timeout for nntp connection to a server
From: Michael Bäuerle
Date: Fri, 02 Sep 2022 10:22
Date: Fri, 02 Sep 2022 10:22
33 lines
2503 bytes
2503 bytes
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 | [...]
Technical Details
Message-ID:
<AABjEdl--uMAAEeZ.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> <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>Show Full Headers
Complete Article Headers
Message-ID: <AABjEdl--uMAAEeZ.A3.flnews@WStation5.stz-e.de> Subject: Re: [flnews 1.1.0] configure timeout for nntp connection to a server Date: Fri, 02 Sep 2022 10:22:55 +0000 From: Michael Bäuerle <michael.baeuerle@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> 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: 33 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)