[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Infinite loop in pop3-retr
From: |
Stefan Monnier |
Subject: |
Re: Infinite loop in pop3-retr |
Date: |
Thu, 26 May 2011 21:35:34 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> Sometimes during retrieving mail through pop3 in gnus I emacs loops
> infinitely in pop3-retr. It seems to be somehow connected with some buggy
> mail. Normally I didn't have time to investigate it thoroughly (I haven't
> used emacs debugger yet) but this time I think I've found out enough to make
> this problem fixed by someone.
> Problem is inside:
> (set-buffer (process-buffer process))
> (while (not (re-search-forward "^\\.\r\n" nil t))
> (pop3-accept-process-output process)
> (goto-char start))
> If I correctly read it this code assumes that in (process-buffer
> process) finally will contain line with dot only but this never
> happens probably due to information found at the end of trace of pop
> session to server saying:
> Process POP connection broken by remote peer.
> Can you propose some fix for this?
The while should also test whether the `process' is still alive. Or else,
pop3-accept-process-output should somehow signal an error if `process' is
not alive any more.
Stefan
- Infinite loop in pop3-retr, tomga, 2011/05/26
- Re: Infinite loop in pop3-retr,
Stefan Monnier <=
- Re: Infinite loop in pop3-retr, Tomasz Gajewski, 2011/05/27
- Re: Infinite loop in pop3-retr, Stefan Monnier, 2011/05/27
- Re: Infinite loop in pop3-retr, Lars Magne Ingebrigtsen, 2011/05/30
- Re: Infinite loop in pop3-retr, Stefan Monnier, 2011/05/31
- Re: Infinite loop in pop3-retr, Lars Magne Ingebrigtsen, 2011/05/31
- Re: Infinite loop in pop3-retr, Stefan Monnier, 2011/05/31
- Re: Infinite loop in pop3-retr, Lars Magne Ingebrigtsen, 2011/05/30
- Re: Infinite loop in pop3-retr, Tomasz Gajewski, 2011/05/31