From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2055 Path: news.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.user Subject: Re: Stale connection? Date: Fri, 07 Feb 2003 19:27:34 +0100 Organization: University of Duisburg, Germany Message-ID: <848ywsosix.fsf@lucy.is.informatik.uni-duisburg.de> References: <84of5pv4ca.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668624 13750 80.91.229.2 (31 Jan 2006 00:50:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:50:24 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:06 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!pd951f1c2.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: pd951f1c2.dip.t-dialin.net (217.81.241.194) Original-X-Trace: fu-berlin.de 1044642476 40735093 217.81.241.194 (16 [73968]) User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 Cancel-Lock: sha1:VygpiXClTjjQqDe86QY/zcRyH0s= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2195 Original-Lines: 17 X-Gnus-Article-Number: 2195 Tue Jan 17 17:30:06 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2055 Archived-At: chris@grierwhite.com (Christopher J. White) writes: > cj> Any way to have gnus automatically close the connection after a > cj> timeout and then re-establish it as necessary? > > kai> This depends on how you connect to the server. > > I use nntp: Hm. I'm afraid that there might not be an easy solution. Though, in a way, the solution should be easy, if you are a Lisp hacker: add a variable containing a timestamp for sending the most recent command. Then, inside nntp-send-command, look for that timestamp. And if more than N seconds have passed since the last command, tear down the connection and open a new one. -- A turnip curses Elvis