From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: display-time, mail-icon and POP3 mailboxes Date: 12 Feb 2002 00:31:08 +0100 Message-ID: <5x3d07iojn.fsf@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: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1013471068 3057 195.204.10.66 (11 Feb 2002 23:44:28 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 11 Feb 2002 23:44:28 GMT Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16aQ7X-0000nC-00 for ; Tue, 12 Feb 2002 00:44:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16aPwb-0004yA-00; Mon, 11 Feb 2002 18:33:09 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian)) id 16aPta-0003WC-00 for ; Mon, 11 Feb 2002 18:30:03 -0500 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 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1015 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1015 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 _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel