From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/14497 Path: main.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus loops if nntp server connection closes without sending output Date: 08 Mar 1998 01:20:30 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: <199803020258.VAA16137@kr-pc.cygnus.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035153678 16502 80.91.224.250 (20 Oct 2002 22:41:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:41:18 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.8/8.8.8) with ESMTP id WAA18442 for ; Sat, 7 Mar 1998 22:27:16 -0800 Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by xemacs.org (8.8.5/8.8.5) with ESMTP id AAA17737 for ; Sun, 8 Mar 1998 00:22:29 -0600 (CST) Original-Received: from sina.hpc.uh.edu (sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.7.6/8.7.3) with ESMTP id AAN21895; Sun, 8 Mar 1998 00:57:51 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 08 Mar 1998 00:21:49 -0600 (CST) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id AAA03546 for ; Sun, 8 Mar 1998 00:21:41 -0600 (CST) Original-Received: (qmail 10980 invoked by uid 504); 8 Mar 1998 06:21:32 -0000 Original-Received: (qmail 10977 invoked from network); 8 Mar 1998 06:21:31 -0000 Original-Received: from tweedledumb.cygnus.com (192.80.44.1) by claymore.vcinet.com with SMTP; 8 Mar 1998 06:21:31 -0000 Original-Received: from kr-pc.cygnus.com (kr-pc.cygnus.com [192.80.44.193]) by tweedledumb.cygnus.com (8.8.5/8.8.5) with ESMTP id BAA29440 for ; Sun, 8 Mar 1998 01:21:20 -0500 (EST) Original-Received: (from raeburn@localhost) by kr-pc.cygnus.com (8.8.8/8.6.9) id BAA24037; Sun, 8 Mar 1998 01:20:31 -0500 (EST) Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "07 Mar 1998 13:51:11 +0100" Original-Lines: 22 X-Mailer: Quassia Gnus v0.37/Emacs 19.34 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:14497 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:14497 Lars Magne Ingebrigtsen writes: > > The loop in nntp-wait-for does not appear to handle a closed > > connection, where no amount of waiting will produce output from the > > closed pipe. > > Hm. It should check the status of the process and see whether it is > still alive. Fix in Quassia Gnus v0.35. At least I think so. Could > you check after it's been released? Tried it (in 0.37), but the problem is still there. The loop here: (while (or (not (memq (char-after (point)) '(?2 ?3 ?4 ?5))) (looking-at "480")) (when (looking-at "480") (nntp-handle-authinfo process)) (nntp-accept-process-output process) (goto-char (point-min))) is being run on an empty buffer, so char-after returns nil, and the loop never finishes. It doesn't get as far as the process-status check.