[Bug 203715] kio_imap4 eats randomly too much cpu
Allen Winter
winter at kde.org
Wed Jan 6 23:49:17 GMT 2010
https://bugs.kde.org/show_bug.cgi?id=203715
Allen Winter <winter at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |winter at kde.org
--- Comment #4 from Allen Winter <winter kde org> 2010-01-07 00:49:13 ---
Tomas, thanks!
Once we have a working patch I will ask the distros to push it out to their
users.
Here's a possible patch for people to try
Index: /data/kde/trunk/KDE/kdepimlibs/kioslave/imap4/imapparser.cpp
===================================================================
--- /data/kde/trunk/KDE/kdepimlibs/kioslave/imap4/imapparser.cpp
(revision 1070797)
+++ /data/kde/trunk/KDE/kdepimlibs/kioslave/imap4/imapparser.cpp
(working copy)
@@ -265,9 +265,11 @@ imapParser::clientAuthenticate ( KIO::Sl
while ( true )
{
//read the next line
- while (parseLoop() == 0) {
+ int parseStat;
+ while ( ( parseStat = parseLoop() ) == 0) {
;
}
+ if ( parseStat < 0 ) break;
if ( cmd->isComplete() ) break;
if (!continuation.isEmpty())
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list