[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: display-time, mail-icon and POP3 mailboxes
From: |
Kim F. Storm |
Subject: |
Re: display-time, mail-icon and POP3 mailboxes |
Date: |
12 Feb 2002 00:31:08 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 |
Richard Stallman <address@hidden> 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 <address@hidden> http://www.cua.dk
- display-time, mail-icon and POP3 mailboxes, Pavel Janík, 2002/02/07
- Re: display-time, mail-icon and POP3 mailboxes, Richard Stallman, 2002/02/08
- Re: display-time, mail-icon and POP3 mailboxes, Pavel Janík, 2002/02/08
- Re: display-time, mail-icon and POP3 mailboxes, Kim F. Storm, 2002/02/08
- Re: display-time, mail-icon and POP3 mailboxes, Pavel Janík, 2002/02/10
- Re: display-time, mail-icon and POP3 mailboxes, Kim F. Storm, 2002/02/10
- Re: display-time, mail-icon and POP3 mailboxes, Richard Stallman, 2002/02/11
- Re: display-time, mail-icon and POP3 mailboxes,
Kim F. Storm <=
- Re: display-time, mail-icon and POP3 mailboxes, Paul Jarc, 2002/02/12
- Re: display-time, mail-icon and POP3 mailboxes, Kim F. Storm, 2002/02/12
- Re: display-time, mail-icon and POP3 mailboxes, Richard Stallman, 2002/02/13
- Re: display-time, mail-icon and POP3 mailboxes, Kim F. Storm, 2002/02/14
- Re: display-time, mail-icon and POP3 mailboxes, Richard Stallman, 2002/02/15
- Re: display-time, mail-icon and POP3 mailboxes, Richard Stallman, 2002/02/13
- Re: display-time, mail-icon and POP3 mailboxes, Kim F. Storm, 2002/02/13
- Re: display-time, mail-icon and POP3 mailboxes, Richard Stallman, 2002/02/15