Article View: news.software.readers
Article #68393Re: [slrn] slrn + giganews
From: Thomas Schultz
Date: Sun, 03 Dec 2000 00:00
Date: Sun, 03 Dec 2000 00:00
66 lines
3174 bytes
3174 bytes
On 01 December 2000 at 16:44 GMT, David B Terrell <dbt@meat.net> wrote:
[...]
> Unfortunately, it doesn't fix when you reconnect after your current
> session has timed out (reading an article, long followup, whatever)
> and you get bonged in the middle. I'll have to look a little deeper
> for that one.
The news server you are using might send an unusual message on
timeouts, which is not recognized by slrn. You could verify this by
connecting to the server using telnet, sending "mode reader" and
posting the message you get when the connection times out.
You might also use an automatic dialup system. In this case, the
connection might simply be dropped when nothing is sent for some time.
slrn can only notice this when reaching its own TCP timeout, which is
currently hardcoded to two minutes. Since this is a rather long time
for you to wait in this situation, I wrote a simple patch that makes
it configurable (after applying it, you can set "tcp_timeout" in your
slrnrc file):
#v+
diff -ur slrn-0.9.6.3.orig/src/sltcp.h slrn-0.9.6.3/src/sltcp.h
--- slrn-0.9.6.3.orig/src/sltcp.h Mon Sep 18 00:35:24 2000
+++ slrn-0.9.6.3/src/sltcp.h Sun Oct 15 17:42:36 2000
@@ -56,6 +56,8 @@
extern int sltcp_open_sltcp (void);
extern int sltcp_close_sltcp (void);
+extern int SLtcp_TimeOut_Secs;
+
#endif
#endif
diff -ur slrn-0.9.6.3.orig/src/startup.c slrn-0.9.6.3/src/startup.c
--- slrn-0.9.6.3.orig/src/startup.c Mon Sep 18 00:35:29 2000
+++ slrn-0.9.6.3/src/startup.c Sun Oct 15 17:47:50 2000
@@ -56,6 +56,9 @@
#include "server.h"
#include "chmap.h"
#include "print.h"
+#if SLRN_USE_SLTCP
+# include "sltcp.h"
+#endif
#ifdef VMS
# include "vms.h"
@@ -376,6 +379,11 @@
{"mouse", &Slrn_Use_Mouse},
{"query_next_group", &Slrn_Query_Next_Group},
{"query_next_article", &Slrn_Query_Next_Article},
+#if SLRN_USE_SLTCP
+ {"tcp_timeout", &SLtcp_TimeOut_Secs},
+#else
+ {"tcp_timeout", NULL},
+#endif
{"confirm_actions", &Slrn_User_Wants_Confirmation},
{"cc_followup", &Slrn_Auto_CC_To_Poster},
{"use_tmpdir", &Slrn_Use_Tmpdir},
#v-
--
Thomas Schultz <tststs@gmx.de> * Recent news from http://slrn.sourceforge.net/
-> [2000-10-22] Matthias Friedrich joins the team
-> [2000-09-27] Initial release of the slrn reference manual
-> [2000-09-18] slrn 0.9.6.3 is out
Technical Details
Message-ID:
<slrn92klem.dl.tststs@starflower.tststs.ddns.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn92e7s7.6ju.dbt@pianosa.catch22.org> <slrn92fjov.m1m.bruno@wolff.to> <slrn92flb1.t2g.dbt@pianosa.catch22.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn92klem.dl.tststs@starflower.tststs.ddns.org> Subject: Re: [slrn] slrn + giganews Date: Sun, 03 Dec 2000 00:00:00 +0000 From: tststs@gmx.de (Thomas Schultz) References: <slrn92e7s7.6ju.dbt@pianosa.catch22.org> <slrn92fjov.m1m.bruno@wolff.to> <slrn92flb1.t2g.dbt@pianosa.catch22.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 700589211 X-Server-Date: 3 Dec 2000 14:24:20 GMT X-Complaints-To: abuse@cityweb.de Organization: Pinguin online. User-Agent: slrn/0.9.6.3pl2 (Linux) NNTP-Posting-Date: 3 Dec 2000 14:26:03 GMT Newsgroups: news.software.readers