#23106 [Opn->Fbk]: imap_fetch_overview hangs with 1000s of messages

From: Date: Tue, 08 Apr 2003 05:26:15 +0000
Subject: #23106 [Opn->Fbk]: imap_fetch_overview hangs with 1000s of messages
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37328@lists.php.net to get a copy of this message
ID: 23106 Updated by: kalowsky@php.net Reported By: charlesb at ekit-inc dot com -Status: Open +Status: Feedback Bug Type: IMAP related Operating System: solaris/i86 PHP Version: 4.3.1 New Comment: And you're sure this isn't a case of timeouts? I.E. the webserver or the PHP application timing out? Does your IMAP server even show that a connection was established? Previous Comments: ------------------------------------------------------------------------ [2003-04-07 23:41:33] charlesb at ekit-inc dot com This is very hard to pin down as (a) there is no error log produced and (b) it does not occur when the server load is small (thus setting up a standalone server with gd doesn't provide anything useful). In a nutshell, the following code crashes apache when there are a large number of messages in the inbox (1000-3000, depending on the server load). There is nothing in the error logs to help, the browser just gives an "unable to locate server" error. $stream = imap_reopen($imp->stream, '{' . "$imp->server:$imp->port". '}' . $preamble . $mboxes[$i], OP_READONLY); $MC=imap_check($imp->stream); $MN=$MC->Nmsgs; $overview=imap_fetch_overview($imp->stream,"1:$MN",0); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23106&edit=1

« previous php.bugs (#37328) next »