From: Mats Lidell <Mats.Lidell@contactor.se>
Cc: Mats Lidell <Mats.Lidell@contactor.se>, ding@gnus.org
Subject: Re: nnimap hangs on connect plus Garbage:
Date: 06 Feb 2001 01:54:53 +0100 [thread overview]
Message-ID: <m3ae80wrz6.fsf@c193.150.217.24.cm-upc.chello.se> (raw)
In-Reply-To: <iluy9vk7m1z.fsf@barbar.josefsson.org> (Simon Josefsson's message of "06 Feb 2001 00:22:00 +0100")
>>>>> Simon wrote:
Simon> Does the following have any effect?
Simon> --- imap.el.~6.3.~ Wed Dec 20 18:14:16 2000
Simon> +++ imap.el Tue Feb 6 00:20:04 2001
Simon> @@ -857,13 +857,16 @@
Simon> imap-current-message nil
Simon> imap-state 'initial
Simon> imap-process (condition-case ()
Simon> + (sit-for 1)
Simon> (funcall (nth 2 (assq imap-stream
Simon> imap-stream-alist))
Simon> "imap" buffer imap-server imap-port)
Simon> + (sit-for 1)
Simon> ((error quit) nil)))
Simon> (when imap-process
Simon> (set-process-filter imap-process 'imap-arrival-filter)
Simon> (set-process-sentinel imap-process 'imap-sentinel)
Simon> + (sit-for 1)
Simon> (while (and (eq imap-state 'initial)
Simon> (memq (process-status imap-process) '(open run)))
Simon> (message "Waiting for response from %s..." imap-server)
Doesn't work. Is condition-case supposed to work that way?
Anyway. I looked down the funcall way and found that it hangs in
imap-network-open: (My messages) (Good old debug by print you know)
(while (and (memq (process-status process) '(open run))
(goto-char (point-min))
(message "imap-network-open 3")
(not (imap-parse-greeting)))
(accept-process-output process 1)
(message "imap-network-open 4")
(sit-for 1))
Endless sequence of "imap-network-open 3" and "imap-network-open 4"
seen in minibuffer.
When I break the loop with C-g the "*nnimap host" buffer contains a
valid greeting line. imap-parse-greeting returns t anyway.
Does this suggest that the "*nnimap host" buffer isn't updated so that
looking-at (in imap-parse-greeting) can see it?
Removing the delay in accept-process-output stops Emacs completely
which suggests to me that all possible output was received but
imap-parse-greeting didn't see it.
Suggestions are welcome.
Yours
--
%% Mats
next prev parent reply other threads:[~2001-02-06 0:54 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
2001-02-06 0:54 ` Mats Lidell [this message]
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=m3ae80wrz6.fsf@c193.150.217.24.cm-upc.chello.se \
--to=mats.lidell@contactor.se \
--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).