[Dovecot] Clients hang because imap-login discards post-login commands

Timo Sirainen tss at iki.fi
Thu May 22 01:53:12 EEST 2008


On May 21, 2008, at 11:41 PM, Mike Abbott wrote:

> Some of my IMAP clients hang when connecting to Dovecot 1.1.rc5.  I  
> believe the problem is that imap-login reads eagerly rather than  
> sparingly.  If a client sends
> a login user password
> b select Inbox
> all at once, without waiting for the login reply before sending the  
> select, imap-login eats the second command (reads it from the socket  
> and does nothing with it; system call tracing confirms this) and the  
> client hangs waiting for a reply to the select command.  I can  
> reproduce this simply using telnet to the dovecot on localhost, as  
> long as I send both lines at once (I paste them in together).

I've known about this for several years, but since the fix isn't too  
simple and I haven't before heard of any clients actually doing this,  
I haven't bothered to fix it yet. I think Courier-IMAP has/had also  
the same problem. What client is this with?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080522/07402ae6/attachment.bin 


More information about the dovecot mailing list