We still can't tell wha is causing the load. But at least now we have a warning:

Fatal error: Maximum execution time of 240 seconds exceeded in 
.../src/read_body.php on line 97 

Here is the function. Do you think SM causes this problem or the server?!


/** returns the index of the previous message from the array. */
function findPreviousMessage($numMessages, $passed_id) {
    global $msort, $sort, $msgs,
           $thread_sort_messages,
           $allow_server_sort, $server_sort_array;
    $result = -1;
    if (!is_array($server_sort_array)) {
        $thread_sort_messages = 0;
        $allow_server_sort = FALSE;
    }
    if ($thread_sort_messages || $allow_server_sort ) {
        foreach($server_sort_array as $key=>$value) {
            if ($passed_id == $value) {
                if ($key == 0) {
                    break;
                }
                $result = $server_sort_array[$key - 1];
                break;
            }
        }
    } else {
        if (is_array($msort)) {
            for (reset($msort); ($key = key($msort)), (isset($key)); 
next($msort)) {
                if ($passed_id == $msgs[$key]['ID']) {
                    prev($msort);
                    $key = key($msort);
                    if (isset($key)) {
                        $result = $msgs[$key]['ID'];
                        break;
                    }
                }
            }
        }
    }
    return $result;
}


  From: Michael Borchers 
  To: squirrelmail 
  Sent: Friday, March 30, 2007 2:12 PM
  Subject: [SM-USERS] CPU 100% Usage - too large attachment?


  PHP Version 4.4.1
  Apache 2.0 
  $config_version = '1.4.4';


  In my main mailbox/inbox I had 3 "small" emails and one big with a 12MB mp3. 
When I tried clicking any of these 4 emails
  Squirrelmail caused a 100% usage on the server and it crashed.

  This happened though the quota was big enough and also the file handling of 
php was!

  My it be a corrupt header or can Squirrelmail have other problems with 
handling large attachments this way?!

  Have a nice weekend everybody!



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to