From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43043 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.gnus.general Subject: Re: display-time, mail-icon and POP3 mailboxes Date: 12 Feb 2002 00:31:08 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <5x3d07iojn.fsf__6581.41918615929$1042212411@kfs2.cua.dk> References: <200202081357.g18Dvfw05454@aztec.santafe.edu> <5x1yfva7m8.fsf@kfs2.cua.dk> <5xn0yhrtye.fsf@kfs2.cua.dk> <200202111848.g1BIm0406891@aztec.santafe.edu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035178199 15453 80.91.224.250 (21 Oct 2002 05:29:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:29:59 +0000 (UTC) Return-Path: Original-Received: (qmail 11588 invoked from network); 12 Feb 2002 00:45:33 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 12 Feb 2002 00:45:33 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16aR2s-0003f2-00; Mon, 11 Feb 2002 18:43:42 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 11 Feb 2002 18:43:41 -0600 (CST) Original-Received: from epithumia.math.uh.edu (epithumia.math.uh.edu [129.7.128.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id SAA01149 for ; Mon, 11 Feb 2002 18:43:34 -0600 (CST) Original-Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.11.2/8.11.1) id g1C0hVF07556 for ding@hpc.uh.edu; Mon, 11 Feb 2002 18:43:31 -0600 Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id RAA00955 for ; Mon, 11 Feb 2002 17:30:30 -0600 (CST) Original-Received: (qmail 9708 invoked by alias); 11 Feb 2002 23:30:26 -0000 Original-Received: (qmail 9703 invoked from network); 11 Feb 2002 23:30:26 -0000 Original-Received: from mail.filanet.dk (195.215.206.179) by gnus.org with SMTP; 11 Feb 2002 23:30:26 -0000 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id DD8C77C035; Mon, 11 Feb 2002 23:29:55 +0000 (GMT) Original-To: emacs-devel@gnu.org, ding@gnus.org In-Reply-To: <200202111848.g1BIm0406891@aztec.santafe.edu> Original-Lines: 27 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43043 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43043 Richard Stallman writes: > > > With the pop3 sample code I posted some time ago, there is one serious > > > problem: If emacs cannot connect to the pop3 server, it may hang (no > > > user interaction) until the connect times out. That is not > > > satisfactory! > > > > The same applies to pop3.el from Gnus. > > If we want to support this in general, we must implement an async > version of open-network-stream (or add an optional arg to it to make > it async - that arg could be a function which is called when the > connection has been opened. > > Is it hanging in open-network-stream? If so, > precisely where in open-network-stream is it waiting? > It may be a straightforward matter to implement quitting from > a few places where the waiting typically happens. > That would fix this problem. I haven't debugged this specifically with emacs, but in other programs, it has been necessary to make connect non-blocking with fcntl(s,F_SETFL,O_NONBLOCK) and then use the writefds of select to know when the connect has completed (at least on GNU/Linux). -- Kim F. Storm http://www.cua.dk