From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61545 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Fwd: Updating Inbox hangs (and I know why) Date: Wed, 14 Dec 2005 16:12:46 +0100 Message-ID: References: <84fyp2x1hg.fsf@www.uni-magdeburg.de> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1134573596 28218 80.91.229.2 (14 Dec 2005 15:19:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2005 15:19:56 +0000 (UTC) Cc: Wolfram Fenske Original-X-From: ding-owner+m10077@lists.math.uh.edu Wed Dec 14 16:19:50 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmYJr-0003Rg-SE for ding-account@gmane.org; Wed, 14 Dec 2005 16:13:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EmYJn-0005z3-00; Wed, 14 Dec 2005 09:13:23 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EmYJK-0005yx-00 for ding@lists.math.uh.edu; Wed, 14 Dec 2005 09:12:54 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EmYJF-0007K8-Fl for ding@lists.math.uh.edu; Wed, 14 Dec 2005 09:12:54 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EmYJE-00081H-00 for ; Wed, 14 Dec 2005 16:12:48 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.4/8.13.4) with ESMTP id jBEFCkfc023944; Wed, 14 Dec 2005 16:12:46 +0100 (MET) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 1E33910D71; Wed, 14 Dec 2005 16:12:46 +0100 (CET) Original-To: Mail-Followup-To: , Wolfram Fenske X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od --=-=-= [ From bugs@gnus.org ... ] Hi, I don't know if this should be fixed in imap.el or in XEmacs. Anyone? Bye, Reiner. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline From: Wolfram Fenske Newsgroups: gnus.gnus-bug Subject: Updating Inbox hangs (and I know why) Date: Fri, 09 Dec 2005 06:50:51 +0100 Message-ID: <84fyp2x1hg.fsf@www.uni-magdeburg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Hello! When I try to update my Inbox (M-g) after a period of inactivity (say 5 or 10 minutes), XEmacs hangs. I have to press C-g to stop updating. Pressing M-g afterwards opens a new connection and succeeds. I think what happens is that the connection somehow dies while I'm not active but Gnus somehow doesn't realize this. I have found out that the hanging occurs in "imap-wait-for-tag" in "imap.el". The function call that hangs is "(accept-process-output imap-process 0 0)". Now I'm not really sure what this is supposed to do, but I suspect this is a bug because looking at the definition of "accept-process-output" in XEmacs' "event-stream.c" if find this: if (msecs) { timeout_id = event_stream_generate_wakeup (msecs, 0, Qnil, Qnil, 0); timeout_enabled = 1; } That means that a timeout is only established if the given interval is non-zero. So in the case of "(accept-process-output imap-process 0 0)", it waits indefinitely if not output is generated. But if the process is dead, "(memq (process-status imap-process) '(open run))" in the while loop above returns "nil" and we get to the function call in question and never return. I tried and set the timeout to 1 second. This way, when I update and the imap-process has died, I get an error the first time: Process not open for writing: # If I try it again, updating works. I guess what's needed is to restart the process if it's not open or running anymore. Kind regards Wolfram Fenske Gnus v5.10.7 XEmacs 21.4 (patch 17) "Jumbo Shrimp" [Lucid] (i686-pc-cygwin, Mule) of Fri Nov 4 2005 on hondo 201 news.cs.uni-magdeburg.de InterNetNews NNRP server INN 2.4.1 ready (no posting). --=-=-= [ User settings stripped, see on news.gnus.org ] --=-=-=--