Roy McMorran wrote: > For now I'm looking at a workaround using stream_set_timeout on the imap > socket. I'll let you know how that goes. > I'm using the following as a workaround and it seems to help prevent the deadlock. This isn't tested thoroughly at all, and there are probably unintended consequences that I have not observed yet. Use at your own risk.
--- imap.inc.dist 2008-04-03 17:59:33.108020000 -0400 +++ imap.inc 2008-04-03 18:42:08.009825000 -0400 @@ -467,6 +467,9 @@ $iil_errornum = -1; return false; } + //set socket timeout 10 secs + stream_set_blocking($conn->fp,FALSE); + stream_set_timeout($conn->fp,10); $iil_error .= "Socket connection established\r\n"; $line = iil_ReadLine($conn->fp, 300); Looking forward to that new imap lib ;-) Cheers, -r -- Roy McMorran Systems Administrator MDI Biological Laboratory [EMAIL PROTECTED] _______________________________________________ List info: http://lists.roundcube.net/dev/