This project is read-only.

IMAPConnection Infinite Loop


There is a major bug in the IMAPConnection Class.
Since the ReadLine Method ignores the IOException, the ExecuteCommand Method can end up stuck in an infinite loop filling up the memory.
If the connection is lost, the ReadLine Method always returns an Empty String, resulting in the ExecuteCommand looping infinite and filling up the memory by adding empty strings to the resultArray.

file attachments


garnerbri wrote Jun 8, 2010 at 3:07 AM

Attached is a fix that makes the app crash instead of hang, which is better but not ideal. The issue still needs a better resolution. The attached changes cause a crash in our app instead of a hang, as well as some other minor changes.

wrote Feb 14, 2013 at 8:14 PM