CVS commit by tilladam: Reduce the timeout value from 10 minutes to 1 minute which seems alltogether more reasonable. This makes KMail time out much faster after IP changes, for example, and 1 minute should be plenty forany kind of latency on the internet today, although very busy servers might time out more often with this. Still, I think keeping this lower is preferrable, as the "hanging" KMail is quite a nuissance with flakey (wlan) connections. Carsten, I hope you forgive me comitting this without prior consent from you. Feel free to revert should this hurt your feelings. Happy New Year, everyone : ) M +3 -2 imap4.cc 1.199 --- kdepim/kioslaves/imap4/imap4.cc #1.198:1.199 @@ -88,4 +88,5 @@ extern "C" { #define IMAP_PROTOCOL "imap" #define IMAP_SSL_PROTOCOL "imaps" +#define IMAP_TIMEOUT_IN_SECONDS 60 using namespace KIO; @@ -740,5 +741,5 @@ bool IMAP4Protocol::parseReadLine (QByte return FALSE; } - if (!waitForResponse(600)) + if (!waitForResponse( IMAP_TIMEOUT_IN_SECONDS )) { error(ERR_SERVER_TIMEOUT, myHost); @@ -2360,5 +2361,5 @@ ssize_t IMAP4Protocol::myRead(void *data } if (!isConnectionValid()) return 0; - waitForResponse(600); + waitForResponse( IMAP_TIMEOUT_IN_SECONDS ); return read(data, len); }