From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35494 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Timeouts with nnimap? Date: 27 Mar 2001 22:55:51 +0200 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035171228 3372 80.91.224.250 (21 Oct 2002 03:33:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:33:48 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: (qmail 4600 invoked by alias); 27 Mar 2001 20:55:58 -0000 Original-Received: (qmail 4595 invoked from network); 27 Mar 2001 20:55:58 -0000 Original-Received: from dolk.extundo.com (195.42.214.242) by gnus.org with SMTP; 27 Mar 2001 20:55:58 -0000 Original-Received: from barbar.josefsson.org (slipsten.extundo.com [195.42.214.241]) (authenticated) by dolk.extundo.com (8.11.3/8.11.3) with ESMTP id f2RKu6j01782; Tue, 27 Mar 2001 22:56:06 +0200 Original-To: Lloyd Zusman In-Reply-To: (Lloyd Zusman's message of "26 Mar 2001 19:30:36 -0500") Mail-Copies-To: nobody User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.100 Original-Lines: 20 Xref: main.gmane.org gmane.emacs.gnus.general:35494 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35494 Lloyd Zusman writes: > While I'm having these problems, `gnus-group-get-new-news' and other > similar commands hang forever while gnus tries to access the imap > server for my nnimap group. This causes gnus to hang in a state that > can only be interrupted by issuing a `kill' command from another > shell. If C-g doesn't interrupt things, it's probably a emacs problem. > Is there any way to set a timeout for nnimap, to prevent gnus from > hanging in this case? Not from a variable, but perhaps you could add some logic to `imap-wait-for-tag' (the function that waits for network I/O), I'd guess it's this function that "hangs". If it's the built-in `accept-process-output' function that hangs, this probably can only be fixed in the emacs core. Reproducing this outside of Gnus (using calls to `open-network-stream' etc) would be a good thing to simplify debugging.