From: Simon Josefsson <sj@extundo.com>
Cc: ding@gnus.org
Subject: Re: nnimap hangs on connect plus Garbage:
Date: 06 Feb 2001 00:22:00 +0100 [thread overview]
Message-ID: <iluy9vk7m1z.fsf@barbar.josefsson.org> (raw)
In-Reply-To: <m3lmrkbx3b.fsf@c193.150.217.24.cm-upc.chello.se> (Mats Lidell's message of "05 Feb 2001 23:10:00 +0100")
Mats Lidell <Mats.Lidell@contactor.se> writes:
> Simon> Also, my experience is that if I don't use the workaround,
> Simon> Emacs locks up completely (any number of C-g doesn't help). I
> Simon> think it's a race condition in Emacs process I/O. I'm hoping
> Simon> that some emacs I/O guru discover the same problem and fix
> Simon> it. :)
>
> Hmm... So what you are saying really is that this might be hard for us
> fix.
Yes. Now that I try it, I'm not even able to reproduce it.
> Simon> Your workaround probably causes enough delay after opening the
> Simon> connection until something is read/written to make things work,
> Simon> just as my workaround. Perhaps imap.el could `sit-for' a
> Simon> second or so after opening external processes. Hm.
>
> I'd definitely would prefere that. Simple enough even for me to
> experiment with. ;-)
Does the following have any effect?
--- imap.el.~6.3.~ Wed Dec 20 18:14:16 2000
+++ imap.el Tue Feb 6 00:20:04 2001
@@ -857,13 +857,16 @@
imap-current-message nil
imap-state 'initial
imap-process (condition-case ()
+ (sit-for 1)
(funcall (nth 2 (assq imap-stream
imap-stream-alist))
"imap" buffer imap-server imap-port)
+ (sit-for 1)
((error quit) nil)))
(when imap-process
(set-process-filter imap-process 'imap-arrival-filter)
(set-process-sentinel imap-process 'imap-sentinel)
+ (sit-for 1)
(while (and (eq imap-state 'initial)
(memq (process-status imap-process) '(open run)))
(message "Waiting for response from %s..." imap-server)
next prev parent reply other threads:[~2001-02-05 23:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-01 23:49 Mats Lidell
2001-02-02 1:57 ` NAGY Andras
2001-02-05 22:05 ` Mats Lidell
2001-02-06 15:12 ` NAGY Andras
2001-02-02 11:05 ` Simon Josefsson
2001-02-05 22:10 ` Mats Lidell
2001-02-05 23:22 ` Simon Josefsson [this message]
2001-02-06 0:54 ` Mats Lidell
2001-02-08 14:19 ` Kai Großjohann
2001-02-18 11:15 ` Mats Lidell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=iluy9vk7m1z.fsf@barbar.josefsson.org \
--to=sj@extundo.com \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).