Jump to content

php script restarts randomly with same POST data


holdorfold

Recommended Posts

I have a php script that receives parsed data from a javascript application via xmlhttp.

Everything works fine except I'm finding that the php script will sometimes stop while it's processing a chunk of data and restart with the same POST data that was sent to it. I thought that maybe the javascript's xmlhttp might be double firing somehow, but I've ruled that out with an inProgress flag as shown below:


function SendPHP(str, callback) {

    xmlhttp = new XMLHttpRequest();
    str = "q=" + encodeURIComponent(str);
    xmlhttp.open("POST", "sendmail.php", true);

    xmlhttp.onreadystatechange = function () {

        if (xmlhttp.readyState == 4) {
            inProgress = false;
            if (xmlhttp.status == 200) {
                callback(xmlhttp.responseText);
            }
        }
    };
    xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    if (inProgress == false) {
        inProgress = true;
        xmlhttp.send(str);
    } else {
        writeDisplayConsole("ERROR: xmlhttp fired twice!");
    }
}

If the xmlhttp tries to send twice then that error is shown and no further packets will be sent. But that's never the case so the php script must be restarting on it's own.

Bear in mind that it happens at random intervals regardless if the data is the same. What could be causing this to happen? The php script frequently writes to big text file logs, could that be something to do with it?

Here's the php (but since the error happens at random intervals with the same data, I'm not sure how it could be a problem with the php code):

 
<?php

writelog("\n*** Sendmail script started ***"); 

$q = $_POST['q'];


   //Split auth code and verify
     $pieces = explode("(<!asplit!>)", $q);
     $authc=$pieces[0];
     $q=$pieces[1];

     if ($authc<>"****"){
            echo "!Authentification denied.";
            writelog ("Authentification denied");
            die;
     }

         writelog ("Authentification accepted");




     //Split off packet details
     $pieces=explode("(<!psplit!>)", $q);
     $tpack=$pieces[0];
     $q=$pieces[1];

     $pieces=explode("-", $tpack);
     $tpacket=$pieces[0];
     $ofpacket=$pieces[1];
     $totalcontacts=$pieces[2]; 

     //Split contact data from email message
     $pieces = explode("(<!dsplit!>)", $q);
     $split=$pieces[0];
     $q=$pieces[1];

     //Assign contacts to array
     $contacts = explode ("<!", $split);
     $tcount=count($contacts);
     $tcount=$tcount-1;

     echo "(PACKET ";
     echo $tpacket;
     echo " OF ";
     echo $ofpacket;
     echo ")- ";

     writelog("(PACKET " . $tpacket . " of " . $ofpacket . ")");

         //Killswitch check incase double run
     checkKillSwitch("!Startup aborted as Power set to off.",0);
     checkKillSwitch("!Aborted, Killswitch set to Kill",1);
     file_put_contents('log/killswitch.txt', "on");

     echo $tcount;
     echo " contacts processing...";

     foreach ($contacts as &$value) {

     //check killswitch
     checkKillSwitch("Killswitch aborted during runtime",1);

                     $split=explode ("^!", $value);

            //Get the contact's details
         $firstname= $split[0];
         $lastname= $split[1];
                 $temail = $split[2];

                 if ($firstname<>""){

           $mainmessage=str_replace("[firstname]",$firstname,$q);
             $mainmessage=str_replace("[lastname]",$lastname,$mainmessage);


           //Split off subject
             $pieces = explode("(/subject)", $mainmessage);
             $tsubject=$pieces[0];
             $mainmessage=$pieces[1];

                    testLogMail($temail, $tsubject, $mainmessage);

                //log progress      
                $adder=$adder+1;

                    //For the log, show progress of total (based on 10 per packet change if different)
                    $tadder = (($tpacket-1)*10)+$adder;

                    echo ($tadder . ".");

                    writelog($tadder . " of " . $totalcontacts . " processed >> " . $temail);
                    sleep(rand(2,20));

                }   

     }

function testLogMail($xaddress, $xsubject, $xmessage){

  $tdate=date('d/m/Y H:i:s');

  $file = 'log/testmaillog.txt';
  // Open the file to get existing content
  $current = file_get_contents($file);

    // Enter email
    $towrite="To: ".$xaddress."\n";
    $towrite.="Subject: ".$xsubject."\n";
    $towrite.="Date: ".$tdate."\n";
    $towrite.="...\n";
  $towrite.=$xmessage."\n";
    $towrite.="___________________________________\n\n";

    $current .= $towrite;

  // Write the contents back to the file
  file_put_contents($file, $current);

}

 function writelog($towrite)
{
  $tdate=date('d/m/Y H:i:s');

  $file = 'log/testlog.txt';
  // Open the file to get existing content
  $current = file_get_contents($file);
  // Append a new person to the file
  $current .= $towrite." --- ".$tdate."\n";
  // Write the contents back to the file
  file_put_contents($file, $current);
} 

function checkKillSwitch($towrite, $killtype){

if ($killtype==0){
   $killswitch = file_get_contents('log/killswitch.txt');

   if ($killswitch=="on") {
    echo $towrite;
    writelog($towrite);
    die;
   }
 }

 if ($killtype==1){
   $killswitch = file_get_contents('log/killswitch.txt');

   if ($killswitch=="kill") {
    echo $towrite;
    writelog($towrite);
    die;
   }
 }


} 

writelog("*** Sendmail script ended ***"); 
?>
 
 
Edited by holdorfold
Link to comment
Share on other sites

 

. . . I'm finding that the php script will sometimes stop while it's processing a chunk of data and restart with the same POST data that was sent to it.

 

And how are you making that determination? If that was the case I would think it would get caught in an infinite loop. Or, perhaps you are seeing some of the same data processed multiple times in the output. If that is the case, how do you know the input data doesn't have some duplication?

Link to comment
Share on other sites

OK, looking through the PHP code, it is very difficult to follow because you use cryptic variable name (e.g. $q) and you reuse them. So, kind of difficult to know what the variable contain or what their purpose is. Plus there are plenty of inefficiencies. For example, you open the log file each time you want to write to it. You should only open it once during the script execution and close it at the end. Plus, many times you are echo'ing the same thing you are sending to the log function. Just add a parameter to the log function to determine if you want the log entry to be output to the page. Or, have the log function return the log entry and then just echo the result of the log function where you want to do so. Plus, you are reading the entire contents of the log file and then writing the entire thing back with the new line. You can simply append a new line to the content.

 

Another problem I see is the 'killswitch' logic. You are storing a value in a flat file. So, if the PHP script happens to be executed concurrently multiple times, there will be problems since the multiple concurrences will be reading from the same file. Not sure why you can't store the killswitch in memory as a variable or as a session value.

Link to comment
Share on other sites

Yeah, apologies for the quality of the code. I'm actually a salesperson by profession, not a coder,  but it's something I've picked up. There are ineficiences but they shouldn't be causing the problem I'm having.

Infact, I should have probably mentioned this, the javascript / php script pair will run fine as long as the sleep (rand 2,20) part is taken out. If that's taken out then the whole thing will run perfectly and rapidly parse and process a big array of data. But if I put the time delay in there, you sometimes get the error at seemingly random intervals which makes me wonder what the problem is.

Here's the output to the testlog.txt file on a trial run where the error crops up on packets: 6, 9, 12 and 22:
 

-Log cleared. --- 13/04/2014 19:01:10

-Command received --- 13/04/2014 19:02:21
-Authentification accepted --- 13/04/2014 19:02:21
-Mailer powered on. --- 13/04/2014 19:02:21

*** Sendmail script started *** --- 13/04/2014 19:02:22
Authentification accepted --- 13/04/2014 19:02:22
(PACKET 1 of 30) --- 13/04/2014 19:02:22
1 of 300 processed >> Jeffrey.Creviston@mailinator.com --- 13/04/2014 19:02:22
2 of 300 processed >> Thaddeus.Brame@mailinator.com --- 13/04/2014 19:02:37
3 of 300 processed >> Isiah.Shutt@mailinator.com --- 13/04/2014 19:02:50
4 of 300 processed >> Gregory.Chappell@mailinator.com --- 13/04/2014 19:03:05
5 of 300 processed >> Kenton.Kanter@mailinator.com --- 13/04/2014 19:03:17
6 of 300 processed >> Fredrick.Ake@mailinator.com --- 13/04/2014 19:03:32
7 of 300 processed >> Columbus.Mayhue@mailinator.com --- 13/04/2014 19:03:41
8 of 300 processed >> Mervin.Delagarza@mailinator.com --- 13/04/2014 19:03:49
9 of 300 processed >> Joaquin.Pennington@mailinator.com --- 13/04/2014 19:03:57
10 of 300 processed >> Lyman.Alaniz@mailinator.com --- 13/04/2014 19:04:14
*** Sendmail script ended *** --- 13/04/2014 19:04:19

-Command received --- 13/04/2014 19:04:19
-Authentification accepted --- 13/04/2014 19:04:19
-Mailer re-powered on. --- 13/04/2014 19:04:19

*** Sendmail script started *** --- 13/04/2014 19:04:19
Authentification accepted --- 13/04/2014 19:04:19
(PACKET 2 of 30) --- 13/04/2014 19:04:19
11 of 300 processed >> Clint.Machin@mailinator.com --- 13/04/2014 19:04:19
12 of 300 processed >> Dominick.Hemstreet@mailinator.com --- 13/04/2014 19:04:28
13 of 300 processed >> Brendon.Dever@mailinator.com --- 13/04/2014 19:04:31
14 of 300 processed >> Florentino.Tippie@mailinator.com --- 13/04/2014 19:04:49
15 of 300 processed >> Mac.Verrill@mailinator.com --- 13/04/2014 19:04:56
16 of 300 processed >> Jesus.Mericle@mailinator.com --- 13/04/2014 19:05:00
17 of 300 processed >> Bennett.Schwartzberg@mailinator.com --- 13/04/2014 19:05:13
18 of 300 processed >> Deandre.Kehoe@mailinator.com --- 13/04/2014 19:05:32
19 of 300 processed >> Robt.Champagne@mailinator.com --- 13/04/2014 19:05:46
20 of 300 processed >> Seymour.Youngs@mailinator.com --- 13/04/2014 19:05:54
*** Sendmail script ended *** --- 13/04/2014 19:06:14

-Command received --- 13/04/2014 19:06:14
-Authentification accepted --- 13/04/2014 19:06:14
-Mailer re-powered on. --- 13/04/2014 19:06:14

*** Sendmail script started *** --- 13/04/2014 19:06:14
Authentification accepted --- 13/04/2014 19:06:14
(PACKET 3 of 30) --- 13/04/2014 19:06:14
21 of 300 processed >> Harry.Medeiros@mailinator.com --- 13/04/2014 19:06:14
22 of 300 processed >> Ezra.Spaulding@mailinator.com --- 13/04/2014 19:06:28
23 of 300 processed >> Craig.Avalos@mailinator.com --- 13/04/2014 19:06:38
24 of 300 processed >> Santo.Larocco@mailinator.com --- 13/04/2014 19:06:58
25 of 300 processed >> Clinton.Agudelo@mailinator.com --- 13/04/2014 19:07:03
26 of 300 processed >> David.Bennet@mailinator.com --- 13/04/2014 19:07:11
27 of 300 processed >> Terrance.Stayton@mailinator.com --- 13/04/2014 19:07:28
28 of 300 processed >> Horacio.Browder@mailinator.com --- 13/04/2014 19:07:39
29 of 300 processed >> Jamal.Okamura@mailinator.com --- 13/04/2014 19:07:47
30 of 300 processed >> Bruno.Plumb@mailinator.com --- 13/04/2014 19:07:59
*** Sendmail script ended *** --- 13/04/2014 19:08:02

-Command received --- 13/04/2014 19:08:03
-Authentification accepted --- 13/04/2014 19:08:03
-Mailer re-powered on. --- 13/04/2014 19:08:03

*** Sendmail script started *** --- 13/04/2014 19:08:03
Authentification accepted --- 13/04/2014 19:08:03
(PACKET 4 of 30) --- 13/04/2014 19:08:03
31 of 300 processed >> Brant.Rawles@mailinator.com --- 13/04/2014 19:08:03
32 of 300 processed >> Arden.Vanderpool@mailinator.com --- 13/04/2014 19:08:09
33 of 300 processed >> Dean.Cawley@mailinator.com --- 13/04/2014 19:08:16
34 of 300 processed >> Fidel.Gullatt@mailinator.com --- 13/04/2014 19:08:30
35 of 300 processed >> Hong.Devenport@mailinator.com --- 13/04/2014 19:08:50
36 of 300 processed >> Donovan.Kimberling@mailinator.com --- 13/04/2014 19:09:07
37 of 300 processed >> Marcel.Desoto@mailinator.com --- 13/04/2014 19:09:16
38 of 300 processed >> Saul.Gonyea@mailinator.com --- 13/04/2014 19:09:25
39 of 300 processed >> Arnoldo.Kubala@mailinator.com --- 13/04/2014 19:09:29
40 of 300 processed >> Herbert.Lindemann@mailinator.com --- 13/04/2014 19:09:44
*** Sendmail script ended *** --- 13/04/2014 19:09:50

-Command received --- 13/04/2014 19:09:50
-Authentification accepted --- 13/04/2014 19:09:50
-Mailer re-powered on. --- 13/04/2014 19:09:50

*** Sendmail script started *** --- 13/04/2014 19:09:50
Authentification accepted --- 13/04/2014 19:09:50
(PACKET 5 of 30) --- 13/04/2014 19:09:50
41 of 300 processed >> Ty.Youngman@mailinator.com --- 13/04/2014 19:09:50
42 of 300 processed >> Jessie.Carrillo@mailinator.com --- 13/04/2014 19:09:58
43 of 300 processed >> Devin.Tittle@mailinator.com --- 13/04/2014 19:10:02
44 of 300 processed >> Jonas.Provenza@mailinator.com --- 13/04/2014 19:10:09
45 of 300 processed >> Peter.Romanowski@mailinator.com --- 13/04/2014 19:10:14
46 of 300 processed >> Darron.Collingsworth@mailinator.com --- 13/04/2014 19:10:23
47 of 300 processed >> Milan.Mcclard@mailinator.com --- 13/04/2014 19:10:33
48 of 300 processed >> Graig.Sottile@mailinator.com --- 13/04/2014 19:10:50
49 of 300 processed >> Leland.Breazeale@mailinator.com --- 13/04/2014 19:10:57
50 of 300 processed >> Jackson.Minix@mailinator.com --- 13/04/2014 19:11:00
*** Sendmail script ended *** --- 13/04/2014 19:11:04

-Command received --- 13/04/2014 19:11:05
-Authentification accepted --- 13/04/2014 19:11:05
-Mailer re-powered on. --- 13/04/2014 19:11:05

*** Sendmail script started *** --- 13/04/2014 19:11:05
Authentification accepted --- 13/04/2014 19:11:05
(PACKET 6 of 30) --- 13/04/2014 19:11:05
51 of 300 processed >> Herb.Burbage@mailinator.com --- 13/04/2014 19:11:05
52 of 300 processed >> Kieth.Wilcoxson@mailinator.com --- 13/04/2014 19:11:12
53 of 300 processed >> Colin.Schick@mailinator.com --- 13/04/2014 19:11:28
54 of 300 processed >> Gus.Scheidler@mailinator.com --- 13/04/2014 19:11:40
55 of 300 processed >> Palmer.Trafton@mailinator.com --- 13/04/2014 19:11:47
56 of 300 processed >> Jaime.Quinonez@mailinator.com --- 13/04/2014 19:12:07
57 of 300 processed >> Jewell.Berenbaum@mailinator.com --- 13/04/2014 19:12:09
58 of 300 processed >> Terrence.Mcelvain@mailinator.com --- 13/04/2014 19:12:10

*** Sendmail script started *** --- 13/04/2014 19:12:20
Authentification accepted --- 13/04/2014 19:12:20
(PACKET 6 of 30) --- 13/04/2014 19:12:20
!Startup aborted as Power set to off. --- 13/04/2014 19:12:20

-Command received --- 13/04/2014 19:12:20
-Authentification accepted --- 13/04/2014 19:12:20
-Mailer re-powered on. --- 13/04/2014 19:12:20

*** Sendmail script started *** --- 13/04/2014 19:12:20
Authentification accepted --- 13/04/2014 19:12:20
(PACKET 7 of 30) --- 13/04/2014 19:12:20
61 of 300 processed >> Raymundo.Avalos@mailinator.com --- 13/04/2014 19:12:20
62 of 300 processed >> Beau.Montalbo@mailinator.com --- 13/04/2014 19:12:35
63 of 300 processed >> Major.Miele@mailinator.com --- 13/04/2014 19:12:55
64 of 300 processed >> Toney.Stoudemire@mailinator.com --- 13/04/2014 19:13:15
65 of 300 processed >> Valentin.Hawbaker@mailinator.com --- 13/04/2014 19:13:33
66 of 300 processed >> Steve.Quill@mailinator.com --- 13/04/2014 19:13:50
67 of 300 processed >> Garland.Kohlmeier@mailinator.com --- 13/04/2014 19:14:00
68 of 300 processed >> Cristobal.Montemayor@mailinator.com --- 13/04/2014 19:14:08
69 of 300 processed >> Rupert.Gaddis@mailinator.com --- 13/04/2014 19:14:28
70 of 300 processed >> Carey.Trainer@mailinator.com --- 13/04/2014 19:14:46
*** Sendmail script ended *** --- 13/04/2014 19:15:02

-Command received --- 13/04/2014 19:15:03
-Authentification accepted --- 13/04/2014 19:15:03
-Mailer re-powered on. --- 13/04/2014 19:15:03

*** Sendmail script started *** --- 13/04/2014 19:15:03
Authentification accepted --- 13/04/2014 19:15:03
(PACKET 8 of 30) --- 13/04/2014 19:15:03
71 of 300 processed >> Ivory.Miguez@mailinator.com --- 13/04/2014 19:15:03
72 of 300 processed >> Porfirio.Beegle@mailinator.com --- 13/04/2014 19:15:22
73 of 300 processed >> Prince.Cerrone@mailinator.com --- 13/04/2014 19:15:39
74 of 300 processed >> Brendon.Goulet@mailinator.com --- 13/04/2014 19:15:50
75 of 300 processed >> Carlo.Kirkpatrick@mailinator.com --- 13/04/2014 19:16:05
76 of 300 processed >> Mohammed.Clausen@mailinator.com --- 13/04/2014 19:16:20
77 of 300 processed >> Franklyn.Bondy@mailinator.com --- 13/04/2014 19:16:28
78 of 300 processed >> Del.Whetzel@mailinator.com --- 13/04/2014 19:16:43
79 of 300 processed >> Bruce.Blasingame@mailinator.com --- 13/04/2014 19:16:47
80 of 300 processed >> Delmer.Huston@mailinator.com --- 13/04/2014 19:16:56
*** Sendmail script ended *** --- 13/04/2014 19:17:13

-Command received --- 13/04/2014 19:17:13
-Authentification accepted --- 13/04/2014 19:17:13
-Mailer re-powered on. --- 13/04/2014 19:17:13

*** Sendmail script started *** --- 13/04/2014 19:17:13
Authentification accepted --- 13/04/2014 19:17:13
(PACKET 9 of 30) --- 13/04/2014 19:17:13
81 of 300 processed >> Phil.Eslinger@mailinator.com --- 13/04/2014 19:17:13
82 of 300 processed >> Joan.Landreth@mailinator.com --- 13/04/2014 19:17:15
83 of 300 processed >> Alan.Watts@mailinator.com --- 13/04/2014 19:17:31
84 of 300 processed >> Robin.Rando@mailinator.com --- 13/04/2014 19:17:39
85 of 300 processed >> Wilbert.Feltman@mailinator.com --- 13/04/2014 19:17:43
86 of 300 processed >> Federico.Kos@mailinator.com --- 13/04/2014 19:17:44

*** Sendmail script started *** --- 13/04/2014 19:17:54
Authentification accepted --- 13/04/2014 19:17:54
(PACKET 9 of 30) --- 13/04/2014 19:17:54
!Startup aborted as Power set to off. --- 13/04/2014 19:17:54

-Command received --- 13/04/2014 19:17:54
-Authentification accepted --- 13/04/2014 19:17:54
-Mailer re-powered on. --- 13/04/2014 19:17:54

*** Sendmail script started *** --- 13/04/2014 19:17:54
Authentification accepted --- 13/04/2014 19:17:54
(PACKET 10 of 30) --- 13/04/2014 19:17:54
91 of 300 processed >> Gavin.Viera@mailinator.com --- 13/04/2014 19:17:54
92 of 300 processed >> Benton.Freudenburg@mailinator.com --- 13/04/2014 19:18:05
93 of 300 processed >> Willard.Bellinger@mailinator.com --- 13/04/2014 19:18:22
94 of 300 processed >> Dwayne.Tseng@mailinator.com --- 13/04/2014 19:18:42
95 of 300 processed >> Ken.Heflin@mailinator.com --- 13/04/2014 19:18:52
96 of 300 processed >> Ed.Neisler@mailinator.com --- 13/04/2014 19:19:03
97 of 300 processed >> Ethan.Colas@mailinator.com --- 13/04/2014 19:19:06
98 of 300 processed >> Raymond.Croney@mailinator.com --- 13/04/2014 19:19:16
99 of 300 processed >> Craig.Caverly@mailinator.com --- 13/04/2014 19:19:23
100 of 300 processed >> Kenny.Bennetts@mailinator.com --- 13/04/2014 19:19:35
*** Sendmail script ended *** --- 13/04/2014 19:19:54

-Command received --- 13/04/2014 19:19:54
-Authentification accepted --- 13/04/2014 19:19:54
-Mailer re-powered on. --- 13/04/2014 19:19:54

*** Sendmail script started *** --- 13/04/2014 19:19:55
Authentification accepted --- 13/04/2014 19:19:55
(PACKET 11 of 30) --- 13/04/2014 19:19:55
101 of 300 processed >> Boris.Musselman@mailinator.com --- 13/04/2014 19:19:55
102 of 300 processed >> Modesto.Fielding@mailinator.com --- 13/04/2014 19:20:00
103 of 300 processed >> Troy.Hosley@mailinator.com --- 13/04/2014 19:20:05
104 of 300 processed >> Toney.Coppola@mailinator.com --- 13/04/2014 19:20:09
105 of 300 processed >> Chuck.Cordle@mailinator.com --- 13/04/2014 19:20:25
106 of 300 processed >> Kerry.Malecha@mailinator.com --- 13/04/2014 19:20:29
107 of 300 processed >> Manuel.Whitton@mailinator.com --- 13/04/2014 19:20:49
108 of 300 processed >> Jed.Allsop@mailinator.com --- 13/04/2014 19:21:00
109 of 300 processed >> Stewart.Frisch@mailinator.com --- 13/04/2014 19:21:05
110 of 300 processed >> Burl.Henke@mailinator.com --- 13/04/2014 19:21:10
*** Sendmail script ended *** --- 13/04/2014 19:21:21

-Command received --- 13/04/2014 19:21:21
-Authentification accepted --- 13/04/2014 19:21:21
-Mailer re-powered on. --- 13/04/2014 19:21:21

*** Sendmail script started *** --- 13/04/2014 19:21:21
Authentification accepted --- 13/04/2014 19:21:21
(PACKET 12 of 30) --- 13/04/2014 19:21:21
111 of 300 processed >> Horacio.Weary@mailinator.com --- 13/04/2014 19:21:21
112 of 300 processed >> Woodrow.Waterbury@mailinator.com --- 13/04/2014 19:21:36
113 of 300 processed >> Wilmer.Tosi@mailinator.com --- 13/04/2014 19:21:42
114 of 300 processed >> Brooks.Schleich@mailinator.com --- 13/04/2014 19:22:02
115 of 300 processed >> Alan.Willman@mailinator.com --- 13/04/2014 19:22:17
116 of 300 processed >> Quinn.Dunn@mailinator.com --- 13/04/2014 19:22:27
117 of 300 processed >> Dexter.Sadberry@mailinator.com --- 13/04/2014 19:22:42
118 of 300 processed >> Trent.Dailey@mailinator.com --- 13/04/2014 19:22:51
119 of 300 processed >> Murray.Sollars@mailinator.com --- 13/04/2014 19:23:02
120 of 300 processed >> Eldridge.Imai@mailinator.com --- 13/04/2014 19:23:15
*** Sendmail script ended *** --- 13/04/2014 19:23:17

*** Sendmail script started *** --- 13/04/2014 19:23:26
Authentification accepted --- 13/04/2014 19:23:26
(PACKET 12 of 30) --- 13/04/2014 19:23:26
!Startup aborted as Power set to off. --- 13/04/2014 19:23:26

-Command received --- 13/04/2014 19:23:26
-Authentification accepted --- 13/04/2014 19:23:26
-Mailer re-powered on. --- 13/04/2014 19:23:26

*** Sendmail script started *** --- 13/04/2014 19:23:26
Authentification accepted --- 13/04/2014 19:23:26
(PACKET 13 of 30) --- 13/04/2014 19:23:26
121 of 300 processed >> Jonah.Mcbride@mailinator.com --- 13/04/2014 19:23:26
122 of 300 processed >> Trinidad.Kaplan@mailinator.com --- 13/04/2014 19:23:41
123 of 300 processed >> Olin.Hampson@mailinator.com --- 13/04/2014 19:23:59
124 of 300 processed >> Gavin.Holahan@mailinator.com --- 13/04/2014 19:24:14
125 of 300 processed >> Derick.Walston@mailinator.com --- 13/04/2014 19:24:32
126 of 300 processed >> Marcelo.Shima@mailinator.com --- 13/04/2014 19:24:34
127 of 300 processed >> Hans.Boos@mailinator.com --- 13/04/2014 19:24:50
128 of 300 processed >> Claud.Agosta@mailinator.com --- 13/04/2014 19:24:57
129 of 300 processed >> Melvin.Belmonte@mailinator.com --- 13/04/2014 19:25:00
130 of 300 processed >> Jonas.Lauro@mailinator.com --- 13/04/2014 19:25:09
*** Sendmail script ended *** --- 13/04/2014 19:25:19

-Command received --- 13/04/2014 19:25:19
-Authentification accepted --- 13/04/2014 19:25:19
-Mailer re-powered on. --- 13/04/2014 19:25:19

*** Sendmail script started *** --- 13/04/2014 19:25:20
Authentification accepted --- 13/04/2014 19:25:20
(PACKET 14 of 30) --- 13/04/2014 19:25:20
131 of 300 processed >> Dion.Ginther@mailinator.com --- 13/04/2014 19:25:20
132 of 300 processed >> Alex.Vanbeek@mailinator.com --- 13/04/2014 19:25:22
133 of 300 processed >> Theron.Molino@mailinator.com --- 13/04/2014 19:25:29
134 of 300 processed >> Florencio.Kopf@mailinator.com --- 13/04/2014 19:25:44
135 of 300 processed >> Reuben.Ries@mailinator.com --- 13/04/2014 19:25:50
136 of 300 processed >> Erin.Ahrens@mailinator.com --- 13/04/2014 19:26:02
137 of 300 processed >> Clemente.Bickham@mailinator.com --- 13/04/2014 19:26:04
138 of 300 processed >> Kenton.Casazza@mailinator.com --- 13/04/2014 19:26:08
139 of 300 processed >> Alfred.Brazier@mailinator.com --- 13/04/2014 19:26:20
140 of 300 processed >> Moses.Salim@mailinator.com --- 13/04/2014 19:26:23
*** Sendmail script ended *** --- 13/04/2014 19:26:38

-Command received --- 13/04/2014 19:26:38
-Authentification accepted --- 13/04/2014 19:26:38
-Mailer re-powered on. --- 13/04/2014 19:26:38

*** Sendmail script started *** --- 13/04/2014 19:26:38
Authentification accepted --- 13/04/2014 19:26:38
(PACKET 15 of 30) --- 13/04/2014 19:26:38
141 of 300 processed >> Ken.Meade@mailinator.com --- 13/04/2014 19:26:38
142 of 300 processed >> Drew.Lonergan@mailinator.com --- 13/04/2014 19:26:53
143 of 300 processed >> Kurt.Durling@mailinator.com --- 13/04/2014 19:27:05
144 of 300 processed >> Forrest.Portnoy@mailinator.com --- 13/04/2014 19:27:19
145 of 300 processed >> Ned.Whichard@mailinator.com --- 13/04/2014 19:27:22
146 of 300 processed >> Anderson.Lupercio@mailinator.com --- 13/04/2014 19:27:25
147 of 300 processed >> Carter.Rady@mailinator.com --- 13/04/2014 19:27:45
148 of 300 processed >> Sydney.Bonomo@mailinator.com --- 13/04/2014 19:27:56
149 of 300 processed >> Miguel.Whittenburg@mailinator.com --- 13/04/2014 19:27:59
150 of 300 processed >> Ashley.Sesco@mailinator.com --- 13/04/2014 19:28:08
*** Sendmail script ended *** --- 13/04/2014 19:28:18

-Command received --- 13/04/2014 19:28:18
-Authentification accepted --- 13/04/2014 19:28:18
-Mailer re-powered on. --- 13/04/2014 19:28:18

*** Sendmail script started *** --- 13/04/2014 19:28:19
Authentification accepted --- 13/04/2014 19:28:19
(PACKET 16 of 30) --- 13/04/2014 19:28:19
151 of 300 processed >> Wilber.Baucom@mailinator.com --- 13/04/2014 19:28:19
152 of 300 processed >> Foster.Steen@mailinator.com --- 13/04/2014 19:28:35
153 of 300 processed >> Kareem.Marroquin@mailinator.com --- 13/04/2014 19:28:39
154 of 300 processed >> Thad.Stanek@mailinator.com --- 13/04/2014 19:28:47
155 of 300 processed >> Laverne.Cheslock@mailinator.com --- 13/04/2014 19:28:57
156 of 300 processed >> Cristopher.Hannigan@mailinator.com --- 13/04/2014 19:28:59
157 of 300 processed >> Hai.Hepp@mailinator.com --- 13/04/2014 19:29:08
158 of 300 processed >> Hong.Maxham@mailinator.com --- 13/04/2014 19:29:14
159 of 300 processed >> Carlo.Deskin@mailinator.com --- 13/04/2014 19:29:21
160 of 300 processed >> Monty.Mccourt@mailinator.com --- 13/04/2014 19:29:31
*** Sendmail script ended *** --- 13/04/2014 19:29:44

-Command received --- 13/04/2014 19:29:44
-Authentification accepted --- 13/04/2014 19:29:44
-Mailer re-powered on. --- 13/04/2014 19:29:44

*** Sendmail script started *** --- 13/04/2014 19:29:44
Authentification accepted --- 13/04/2014 19:29:44
(PACKET 17 of 30) --- 13/04/2014 19:29:44
161 of 300 processed >> Otto.Niswonger@mailinator.com --- 13/04/2014 19:29:44
162 of 300 processed >> Anton.Rutten@mailinator.com --- 13/04/2014 19:30:00
163 of 300 processed >> Werner.Swaby@mailinator.com --- 13/04/2014 19:30:10
164 of 300 processed >> Charley.Alvelo@mailinator.com --- 13/04/2014 19:30:28
165 of 300 processed >> Freeman.Letchworth@mailinator.com --- 13/04/2014 19:30:38
166 of 300 processed >> Armand.Wingert@mailinator.com --- 13/04/2014 19:30:53
167 of 300 processed >> Julian.Vanderzee@mailinator.com --- 13/04/2014 19:31:03
168 of 300 processed >> Lavern.Parenti@mailinator.com --- 13/04/2014 19:31:14
169 of 300 processed >> Boyd.Frailey@mailinator.com --- 13/04/2014 19:31:32
170 of 300 processed >> Valentin.Giordano@mailinator.com --- 13/04/2014 19:31:52
*** Sendmail script ended *** --- 13/04/2014 19:32:04

-Command received --- 13/04/2014 19:32:05
-Authentification accepted --- 13/04/2014 19:32:05
-Mailer re-powered on. --- 13/04/2014 19:32:05

*** Sendmail script started *** --- 13/04/2014 19:32:05
Authentification accepted --- 13/04/2014 19:32:05
(PACKET 18 of 30) --- 13/04/2014 19:32:05
171 of 300 processed >> Coy.Marron@mailinator.com --- 13/04/2014 19:32:05
172 of 300 processed >> Wilford.Kinzer@mailinator.com --- 13/04/2014 19:32:17
173 of 300 processed >> Alfonso.Ezzell@mailinator.com --- 13/04/2014 19:32:32
174 of 300 processed >> Vincent.Leonetti@mailinator.com --- 13/04/2014 19:32:35
175 of 300 processed >> Rhett.Beadles@mailinator.com --- 13/04/2014 19:32:40
176 of 300 processed >> Lupe.Hammer@mailinator.com --- 13/04/2014 19:32:56
177 of 300 processed >> Jame.Dinan@mailinator.com --- 13/04/2014 19:33:01
178 of 300 processed >> Thaddeus.Pipkins@mailinator.com --- 13/04/2014 19:33:06
179 of 300 processed >> Quinton.Cooney@mailinator.com --- 13/04/2014 19:33:12
180 of 300 processed >> Terry.Dunaway@mailinator.com --- 13/04/2014 19:33:19
*** Sendmail script ended *** --- 13/04/2014 19:33:32

-Command received --- 13/04/2014 19:33:32
-Authentification accepted --- 13/04/2014 19:33:32
-Mailer re-powered on. --- 13/04/2014 19:33:32

*** Sendmail script started *** --- 13/04/2014 19:33:33
Authentification accepted --- 13/04/2014 19:33:33
(PACKET 19 of 30) --- 13/04/2014 19:33:33
181 of 300 processed >> Claud.Belknap@mailinator.com --- 13/04/2014 19:33:33
182 of 300 processed >> Jacob.Chen@mailinator.com --- 13/04/2014 19:33:48
183 of 300 processed >> Gil.Frigo@mailinator.com --- 13/04/2014 19:33:51
184 of 300 processed >> Rocco.Sewell@mailinator.com --- 13/04/2014 19:34:06
185 of 300 processed >> Johnathan.Farabaugh@mailinator.com --- 13/04/2014 19:34:09
186 of 300 processed >> Alden.Moser@mailinator.com --- 13/04/2014 19:34:20
187 of 300 processed >> Kraig.Blane@mailinator.com --- 13/04/2014 19:34:36
188 of 300 processed >> Jorge.Burgin@mailinator.com --- 13/04/2014 19:34:46
189 of 300 processed >> James.Janey@mailinator.com --- 13/04/2014 19:35:01
190 of 300 processed >> Josiah.Jinks@mailinator.com --- 13/04/2014 19:35:04
*** Sendmail script ended *** --- 13/04/2014 19:35:23

-Command received --- 13/04/2014 19:35:23
-Authentification accepted --- 13/04/2014 19:35:23
-Mailer re-powered on. --- 13/04/2014 19:35:23

*** Sendmail script started *** --- 13/04/2014 19:35:23
Authentification accepted --- 13/04/2014 19:35:23
(PACKET 20 of 30) --- 13/04/2014 19:35:23
191 of 300 processed >> Derick.Mullings@mailinator.com --- 13/04/2014 19:35:23
192 of 300 processed >> Bud.Mabe@mailinator.com --- 13/04/2014 19:35:31
193 of 300 processed >> Clarence.Platt@mailinator.com --- 13/04/2014 19:35:49
194 of 300 processed >> Russell.Averette@mailinator.com --- 13/04/2014 19:35:57
195 of 300 processed >> Rudolf.Bohnsack@mailinator.com --- 13/04/2014 19:36:03
196 of 300 processed >> Melvin.Sikora@mailinator.com --- 13/04/2014 19:36:10
197 of 300 processed >> Parker.Woll@mailinator.com --- 13/04/2014 19:36:13
198 of 300 processed >> Gordon.Piatt@mailinator.com --- 13/04/2014 19:36:27
199 of 300 processed >> Brad.Romine@mailinator.com --- 13/04/2014 19:36:44
200 of 300 processed >> Houston.Kuehn@mailinator.com --- 13/04/2014 19:37:03
*** Sendmail script ended *** --- 13/04/2014 19:37:17

-Command received --- 13/04/2014 19:37:17
-Authentification accepted --- 13/04/2014 19:37:17
-Mailer re-powered on. --- 13/04/2014 19:37:17

*** Sendmail script started *** --- 13/04/2014 19:37:17
Authentification accepted --- 13/04/2014 19:37:17
(PACKET 21 of 30) --- 13/04/2014 19:37:17
201 of 300 processed >> Delmar.Powell@mailinator.com --- 13/04/2014 19:37:17
202 of 300 processed >> Jean.Maxwell@mailinator.com --- 13/04/2014 19:37:25
203 of 300 processed >> Minh.Showman@mailinator.com --- 13/04/2014 19:37:36
204 of 300 processed >> Kendrick.Everett@mailinator.com --- 13/04/2014 19:37:44
205 of 300 processed >> Cristobal.Ennals@mailinator.com --- 13/04/2014 19:37:54
206 of 300 processed >> Lanny.Bard@mailinator.com --- 13/04/2014 19:38:08
207 of 300 processed >> Ernie.Kropp@mailinator.com --- 13/04/2014 19:38:12
208 of 300 processed >> Darius.Morein@mailinator.com --- 13/04/2014 19:38:26
209 of 300 processed >> Buster.Grego@mailinator.com --- 13/04/2014 19:38:45
210 of 300 processed >> Eugenio.Steffensen@mailinator.com --- 13/04/2014 19:38:54
*** Sendmail script ended *** --- 13/04/2014 19:39:13

-Command received --- 13/04/2014 19:39:13
-Authentification accepted --- 13/04/2014 19:39:13
-Mailer re-powered on. --- 13/04/2014 19:39:13

*** Sendmail script started *** --- 13/04/2014 19:39:13
Authentification accepted --- 13/04/2014 19:39:13
(PACKET 22 of 30) --- 13/04/2014 19:39:13
211 of 300 processed >> Cordell.Skerrett@mailinator.com --- 13/04/2014 19:39:13
212 of 300 processed >> Frank.Blundell@mailinator.com --- 13/04/2014 19:39:18
213 of 300 processed >> Micah.Kees@mailinator.com --- 13/04/2014 19:39:19

*** Sendmail script started *** --- 13/04/2014 19:39:29
Authentification accepted --- 13/04/2014 19:39:29
(PACKET 22 of 30) --- 13/04/2014 19:39:29
!Startup aborted as Power set to off. --- 13/04/2014 19:39:29

-Command received --- 13/04/2014 19:39:29
-Authentification accepted --- 13/04/2014 19:39:29
-Mailer re-powered on. --- 13/04/2014 19:39:29

*** Sendmail script started *** --- 13/04/2014 19:39:29
Authentification accepted --- 13/04/2014 19:39:29
(PACKET 23 of 30) --- 13/04/2014 19:39:29
221 of 300 processed >> Rudolph.Spadafora@mailinator.com --- 13/04/2014 19:39:29
222 of 300 processed >> Cesar.Mceachin@mailinator.com --- 13/04/2014 19:39:35
223 of 300 processed >> Jerome.Hornbuckle@mailinator.com --- 13/04/2014 19:39:47
224 of 300 processed >> Tom.Tousant@mailinator.com --- 13/04/2014 19:39:58
225 of 300 processed >> Amos.Marshburn@mailinator.com --- 13/04/2014 19:40:10
226 of 300 processed >> Sung.Darst@mailinator.com --- 13/04/2014 19:40:27
227 of 300 processed >> Darrin.Bizier@mailinator.com --- 13/04/2014 19:40:38
228 of 300 processed >> Jon.Lesniak@mailinator.com --- 13/04/2014 19:40:46
229 of 300 processed >> Olen.Bouley@mailinator.com --- 13/04/2014 19:40:55
230 of 300 processed >> Abe.Rey@mailinator.com --- 13/04/2014 19:41:14
*** Sendmail script ended *** --- 13/04/2014 19:41:21

-Command received --- 13/04/2014 19:41:21
-Authentification accepted --- 13/04/2014 19:41:21
-Mailer re-powered on. --- 13/04/2014 19:41:21

*** Sendmail script started *** --- 13/04/2014 19:41:21
Authentification accepted --- 13/04/2014 19:41:21
(PACKET 24 of 30) --- 13/04/2014 19:41:21
231 of 300 processed >> Guadalupe.Uhl@mailinator.com --- 13/04/2014 19:41:21
232 of 300 processed >> Fabian.Grand@mailinator.com --- 13/04/2014 19:41:37
233 of 300 processed >> Rubin.Beeks@mailinator.com --- 13/04/2014 19:41:43
234 of 300 processed >> Ervin.Mcdow@mailinator.com --- 13/04/2014 19:42:03
235 of 300 processed >> Brent.Girouard@mailinator.com --- 13/04/2014 19:42:17
236 of 300 processed >> King.Schupp@mailinator.com --- 13/04/2014 19:42:19
237 of 300 processed >> Josh.Nadler@mailinator.com --- 13/04/2014 19:42:25
238 of 300 processed >> Armando.Mcgurk@mailinator.com --- 13/04/2014 19:42:37
239 of 300 processed >> Rosendo.Carruth@mailinator.com --- 13/04/2014 19:42:54
240 of 300 processed >> Pasquale.Peveto@mailinator.com --- 13/04/2014 19:43:01
*** Sendmail script ended *** --- 13/04/2014 19:43:19

-Command received --- 13/04/2014 19:43:19
-Authentification accepted --- 13/04/2014 19:43:19
-Mailer re-powered on. --- 13/04/2014 19:43:19

*** Sendmail script started *** --- 13/04/2014 19:43:19
Authentification accepted --- 13/04/2014 19:43:19
(PACKET 25 of 30) --- 13/04/2014 19:43:19
241 of 300 processed >> Ramiro.Barter@mailinator.com --- 13/04/2014 19:43:19
242 of 300 processed >> Winford.Costantino@mailinator.com --- 13/04/2014 19:43:22
243 of 300 processed >> Clement.Pinkley@mailinator.com --- 13/04/2014 19:43:32
244 of 300 processed >> Errol.Goines@mailinator.com --- 13/04/2014 19:43:52
245 of 300 processed >> Edmond.Tejeda@mailinator.com --- 13/04/2014 19:43:59
246 of 300 processed >> Wilfredo.Jelks@mailinator.com --- 13/04/2014 19:44:02
247 of 300 processed >> Lynwood.Fils@mailinator.com --- 13/04/2014 19:44:15
248 of 300 processed >> Carson.Oxner@mailinator.com --- 13/04/2014 19:44:34
249 of 300 processed >> Valentine.Dealba@mailinator.com --- 13/04/2014 19:44:41
250 of 300 processed >> Evan.Boser@mailinator.com --- 13/04/2014 19:44:51
*** Sendmail script ended *** --- 13/04/2014 19:44:59

-Command received --- 13/04/2014 19:45:00
-Authentification accepted --- 13/04/2014 19:45:00
-Mailer re-powered on. --- 13/04/2014 19:45:00

*** Sendmail script started *** --- 13/04/2014 19:45:00
Authentification accepted --- 13/04/2014 19:45:00
(PACKET 26 of 30) --- 13/04/2014 19:45:00
251 of 300 processed >> Miquel.Bellis@mailinator.com --- 13/04/2014 19:45:00
252 of 300 processed >> Ignacio.Melecio@mailinator.com --- 13/04/2014 19:45:09
253 of 300 processed >> Lindsay.Mallon@mailinator.com --- 13/04/2014 19:45:23
254 of 300 processed >> Norbert.Valade@mailinator.com --- 13/04/2014 19:45:42
255 of 300 processed >> Paris.Dillingham@mailinator.com --- 13/04/2014 19:46:01
256 of 300 processed >> Chas.Dibernardo@mailinator.com --- 13/04/2014 19:46:06
257 of 300 processed >> Rob.Klinger@mailinator.com --- 13/04/2014 19:46:22
258 of 300 processed >> Adolph.Leister@mailinator.com --- 13/04/2014 19:46:31
259 of 300 processed >> Lyndon.Weinman@mailinator.com --- 13/04/2014 19:46:42
260 of 300 processed >> Lyman.Ayars@mailinator.com --- 13/04/2014 19:46:45
*** Sendmail script ended *** --- 13/04/2014 19:46:53

-Command received --- 13/04/2014 19:46:54
-Authentification accepted --- 13/04/2014 19:46:54
-Mailer re-powered on. --- 13/04/2014 19:46:54

*** Sendmail script started *** --- 13/04/2014 19:46:54
Authentification accepted --- 13/04/2014 19:46:54
(PACKET 27 of 30) --- 13/04/2014 19:46:54
261 of 300 processed >> Dwain.Seguin@mailinator.com --- 13/04/2014 19:46:54
262 of 300 processed >> Waylon.Mcburney@mailinator.com --- 13/04/2014 19:47:11
263 of 300 processed >> Leonel.Cygan@mailinator.com --- 13/04/2014 19:47:28
264 of 300 processed >> Gerardo.Joshi@mailinator.com --- 13/04/2014 19:47:41
265 of 300 processed >> Devon.Brass@mailinator.com --- 13/04/2014 19:47:58
266 of 300 processed >> Britt.Lebowitz@mailinator.com --- 13/04/2014 19:48:09
267 of 300 processed >> Doyle.Husbands@mailinator.com --- 13/04/2014 19:48:22
268 of 300 processed >> Michal.Ram@mailinator.com --- 13/04/2014 19:48:24
269 of 300 processed >> Mariano.Farley@mailinator.com --- 13/04/2014 19:48:26
270 of 300 processed >> Hector.Audet@mailinator.com --- 13/04/2014 19:48:36
*** Sendmail script ended *** --- 13/04/2014 19:48:44

-Command received --- 13/04/2014 19:48:45
-Authentification accepted --- 13/04/2014 19:48:45
-Mailer re-powered on. --- 13/04/2014 19:48:45

*** Sendmail script started *** --- 13/04/2014 19:48:45
Authentification accepted --- 13/04/2014 19:48:45
(PACKET 28 of 30) --- 13/04/2014 19:48:45
271 of 300 processed >> Richie.Delany@mailinator.com --- 13/04/2014 19:48:45
272 of 300 processed >> Alexis.Dale@mailinator.com --- 13/04/2014 19:49:03
273 of 300 processed >> Edmond.Schick@mailinator.com --- 13/04/2014 19:49:14
274 of 300 processed >> Cornell.Leite@mailinator.com --- 13/04/2014 19:49:30
275 of 300 processed >> Pierre.Peasley@mailinator.com --- 13/04/2014 19:49:47
276 of 300 processed >> Chester.Lohmann@mailinator.com --- 13/04/2014 19:50:04
277 of 300 processed >> Lewis.Jobe@mailinator.com --- 13/04/2014 19:50:22
278 of 300 processed >> Darrel.Farinas@mailinator.com --- 13/04/2014 19:50:31
279 of 300 processed >> Willie.Credle@mailinator.com --- 13/04/2014 19:50:47
280 of 300 processed >> Irving.Bristow@mailinator.com --- 13/04/2014 19:50:51
*** Sendmail script ended *** --- 13/04/2014 19:51:08

-Command received --- 13/04/2014 19:51:09
-Authentification accepted --- 13/04/2014 19:51:09
-Mailer re-powered on. --- 13/04/2014 19:51:09

*** Sendmail script started *** --- 13/04/2014 19:51:09
Authentification accepted --- 13/04/2014 19:51:09
(PACKET 29 of 30) --- 13/04/2014 19:51:09
281 of 300 processed >> Tory.Laino@mailinator.com --- 13/04/2014 19:51:09
282 of 300 processed >> Fernando.Mcmakin@mailinator.com --- 13/04/2014 19:51:12
283 of 300 processed >> Gerard.Amon@mailinator.com --- 13/04/2014 19:51:23
284 of 300 processed >> Vance.Trojacek@mailinator.com --- 13/04/2014 19:51:34
285 of 300 processed >> Calvin.Rode@mailinator.com --- 13/04/2014 19:51:54
286 of 300 processed >> Mike.Hollingworth@mailinator.com --- 13/04/2014 19:52:04
287 of 300 processed >> Tom.Kellerhouse@mailinator.com --- 13/04/2014 19:52:19
288 of 300 processed >> Bryant.Lambrecht@mailinator.com --- 13/04/2014 19:52:34
289 of 300 processed >> Jon.Linscott@mailinator.com --- 13/04/2014 19:52:51
290 of 300 processed >> Jamal.Maclaren@mailinator.com --- 13/04/2014 19:52:56
*** Sendmail script ended *** --- 13/04/2014 19:53:13

-Command received --- 13/04/2014 19:53:14
-Authentification accepted --- 13/04/2014 19:53:14
-Mailer re-powered on. --- 13/04/2014 19:53:14

*** Sendmail script started *** --- 13/04/2014 19:53:14
Authentification accepted --- 13/04/2014 19:53:14
(PACKET 30 of 30) --- 13/04/2014 19:53:14
291 of 300 processed >> Napoleon.Piersall@mailinator.com --- 13/04/2014 19:53:14
292 of 300 processed >> Reginald.Weiser@mailinator.com --- 13/04/2014 19:53:19
293 of 300 processed >> Garry.Seckman@mailinator.com --- 13/04/2014 19:53:21
294 of 300 processed >> Kory.Koepsell@mailinator.com --- 13/04/2014 19:53:35
295 of 300 processed >> Jospeh.Theurer@mailinator.com --- 13/04/2014 19:53:51
296 of 300 processed >> Jere.Para@mailinator.com --- 13/04/2014 19:54:08
297 of 300 processed >> Leandro.Steib@mailinator.com --- 13/04/2014 19:54:13
298 of 300 processed >> Jarred.Salido@mailinator.com --- 13/04/2014 19:54:22
299 of 300 processed >> Ernie.Keifer@mailinator.com --- 13/04/2014 19:54:40
300 of 300 processed >> Jesus.Warfel@mailinator.com --- 13/04/2014 19:54:45
*** Sendmail script ended *** --- 13/04/2014 19:55:02

Edited by holdorfold
Link to comment
Share on other sites

And how are you making that determination? If that was the case I would think it would get caught in an infinite loop. Or, perhaps you are seeing some of the same data processed multiple times in the output. If that is the case, how do you know the input data doesn't have some duplication?

 

Each packet is marked "packet x of y" and when the script runs it turns on a killswitch which prevents it from running again until the killswitch is turned off again (marked in the log as "mailer re-powered on").

 

If I take out the killswitch and the error happens, the same packet will be processed again from the start to finish. There's no duplication in the actual data being parsed though, the script just runs twice for some reason.

Edited by holdorfold
Link to comment
Share on other sites

Ok, so you see that packet #9 had a problem. Did you inspect the full contents of that packet? Could be some odd character in the input that is causing the problem. Also, your initial post made it seem as if it was reprocessing the same chunk of code. That's not the case, so I will assume there is something in the data that is causing that chunk to fail.

Link to comment
Share on other sites

I couldn't figure out how to add an attatchment so I uploaded the CSV here: http://www.qfpost.com/file/d?g=5vHRWHBmE

 

But the thing is if I take the time delay sleep (rand 2,20) out of the php script then the whole thing is processed perfectly using exactly the same data so it can't be a problem with the data. And if it runs perfectly without the delay then I can't see how it could be anything in my code. It makes me wonder if it might be an issue with my hosting or browser... but I'm not sure where to start with working out what it could be.

To illustrate, I've just taken the sleep delay out of the script, run with the same data and I get a perfect run everytime. Here's the log:

-Log cleared. --- 14/04/2014 18:28:14

-Command received --- 14/04/2014 18:29:36
-Authentification accepted --- 14/04/2014 18:29:36
-Mailer powered on. --- 14/04/2014 18:29:36

*** Sendmail script started *** --- 14/04/2014 18:29:40
Authentification accepted --- 14/04/2014 18:29:40
(PACKET 1 of 30) --- 14/04/2014 18:29:40
1 of 300 processed >> Jeffrey.Creviston@mailinator.com --- 14/04/2014 18:29:40
2 of 300 processed >> Thaddeus.Brame@mailinator.com --- 14/04/2014 18:29:40
3 of 300 processed >> Isiah.Shutt@mailinator.com --- 14/04/2014 18:29:40
4 of 300 processed >> Gregory.Chappell@mailinator.com --- 14/04/2014 18:29:40
5 of 300 processed >> Kenton.Kanter@mailinator.com --- 14/04/2014 18:29:40
6 of 300 processed >> Fredrick.Ake@mailinator.com --- 14/04/2014 18:29:40
7 of 300 processed >> Columbus.Mayhue@mailinator.com --- 14/04/2014 18:29:40
8 of 300 processed >> Mervin.Delagarza@mailinator.com --- 14/04/2014 18:29:40
9 of 300 processed >> Joaquin.Pennington@mailinator.com --- 14/04/2014 18:29:40
10 of 300 processed >> Lyman.Alaniz@mailinator.com --- 14/04/2014 18:29:40
*** Sendmail script ended *** --- 14/04/2014 18:29:40

-Command received --- 14/04/2014 18:29:40
-Authentification accepted --- 14/04/2014 18:29:40
-Mailer re-powered on. --- 14/04/2014 18:29:40

*** Sendmail script started *** --- 14/04/2014 18:29:40
Authentification accepted --- 14/04/2014 18:29:40
(PACKET 2 of 30) --- 14/04/2014 18:29:40
11 of 300 processed >> Clint.Machin@mailinator.com --- 14/04/2014 18:29:40
12 of 300 processed >> Dominick.Hemstreet@mailinator.com --- 14/04/2014 18:29:40
13 of 300 processed >> Brendon.Dever@mailinator.com --- 14/04/2014 18:29:40
14 of 300 processed >> Florentino.Tippie@mailinator.com --- 14/04/2014 18:29:40
15 of 300 processed >> Mac.Verrill@mailinator.com --- 14/04/2014 18:29:40
16 of 300 processed >> Jesus.Mericle@mailinator.com --- 14/04/2014 18:29:40
17 of 300 processed >> Bennett.Schwartzberg@mailinator.com --- 14/04/2014 18:29:40
18 of 300 processed >> Deandre.Kehoe@mailinator.com --- 14/04/2014 18:29:40
19 of 300 processed >> Robt.Champagne@mailinator.com --- 14/04/2014 18:29:40
20 of 300 processed >> Seymour.Youngs@mailinator.com --- 14/04/2014 18:29:40
*** Sendmail script ended *** --- 14/04/2014 18:29:40

-Command received --- 14/04/2014 18:29:40
-Authentification accepted --- 14/04/2014 18:29:40
-Mailer re-powered on. --- 14/04/2014 18:29:40

*** Sendmail script started *** --- 14/04/2014 18:29:41
Authentification accepted --- 14/04/2014 18:29:41
(PACKET 3 of 30) --- 14/04/2014 18:29:41
21 of 300 processed >> Harry.Medeiros@mailinator.com --- 14/04/2014 18:29:41
22 of 300 processed >> Ezra.Spaulding@mailinator.com --- 14/04/2014 18:29:41
23 of 300 processed >> Craig.Avalos@mailinator.com --- 14/04/2014 18:29:41
24 of 300 processed >> Santo.Larocco@mailinator.com --- 14/04/2014 18:29:41
25 of 300 processed >> Clinton.Agudelo@mailinator.com --- 14/04/2014 18:29:41
26 of 300 processed >> David.Bennet@mailinator.com --- 14/04/2014 18:29:41
27 of 300 processed >> Terrance.Stayton@mailinator.com --- 14/04/2014 18:29:41
28 of 300 processed >> Horacio.Browder@mailinator.com --- 14/04/2014 18:29:41
29 of 300 processed >> Jamal.Okamura@mailinator.com --- 14/04/2014 18:29:41
30 of 300 processed >> Bruno.Plumb@mailinator.com --- 14/04/2014 18:29:41
*** Sendmail script ended *** --- 14/04/2014 18:29:41

-Command received --- 14/04/2014 18:29:41
-Authentification accepted --- 14/04/2014 18:29:41
-Mailer re-powered on. --- 14/04/2014 18:29:41

*** Sendmail script started *** --- 14/04/2014 18:29:41
Authentification accepted --- 14/04/2014 18:29:41
(PACKET 4 of 30) --- 14/04/2014 18:29:41
31 of 300 processed >> Brant.Rawles@mailinator.com --- 14/04/2014 18:29:41
32 of 300 processed >> Arden.Vanderpool@mailinator.com --- 14/04/2014 18:29:41
33 of 300 processed >> Dean.Cawley@mailinator.com --- 14/04/2014 18:29:41
34 of 300 processed >> Fidel.Gullatt@mailinator.com --- 14/04/2014 18:29:41
35 of 300 processed >> Hong.Devenport@mailinator.com --- 14/04/2014 18:29:41
36 of 300 processed >> Donovan.Kimberling@mailinator.com --- 14/04/2014 18:29:41
37 of 300 processed >> Marcel.Desoto@mailinator.com --- 14/04/2014 18:29:41
38 of 300 processed >> Saul.Gonyea@mailinator.com --- 14/04/2014 18:29:41
39 of 300 processed >> Arnoldo.Kubala@mailinator.com --- 14/04/2014 18:29:41
40 of 300 processed >> Herbert.Lindemann@mailinator.com --- 14/04/2014 18:29:41
*** Sendmail script ended *** --- 14/04/2014 18:29:41

-Command received --- 14/04/2014 18:29:41
-Authentification accepted --- 14/04/2014 18:29:41
-Mailer re-powered on. --- 14/04/2014 18:29:41

*** Sendmail script started *** --- 14/04/2014 18:29:42
Authentification accepted --- 14/04/2014 18:29:42
(PACKET 5 of 30) --- 14/04/2014 18:29:42
41 of 300 processed >> Ty.Youngman@mailinator.com --- 14/04/2014 18:29:42
42 of 300 processed >> Jessie.Carrillo@mailinator.com --- 14/04/2014 18:29:42
43 of 300 processed >> Devin.Tittle@mailinator.com --- 14/04/2014 18:29:42
44 of 300 processed >> Jonas.Provenza@mailinator.com --- 14/04/2014 18:29:42
45 of 300 processed >> Peter.Romanowski@mailinator.com --- 14/04/2014 18:29:42
46 of 300 processed >> Darron.Collingsworth@mailinator.com --- 14/04/2014 18:29:42
47 of 300 processed >> Milan.Mcclard@mailinator.com --- 14/04/2014 18:29:42
48 of 300 processed >> Graig.Sottile@mailinator.com --- 14/04/2014 18:29:42
49 of 300 processed >> Leland.Breazeale@mailinator.com --- 14/04/2014 18:29:42
50 of 300 processed >> Jackson.Minix@mailinator.com --- 14/04/2014 18:29:42
*** Sendmail script ended *** --- 14/04/2014 18:29:42

-Command received --- 14/04/2014 18:29:42
-Authentification accepted --- 14/04/2014 18:29:42
-Mailer re-powered on. --- 14/04/2014 18:29:42

*** Sendmail script started *** --- 14/04/2014 18:29:42
Authentification accepted --- 14/04/2014 18:29:42
(PACKET 6 of 30) --- 14/04/2014 18:29:42
51 of 300 processed >> Herb.Burbage@mailinator.com --- 14/04/2014 18:29:42
52 of 300 processed >> Kieth.Wilcoxson@mailinator.com --- 14/04/2014 18:29:42
53 of 300 processed >> Colin.Schick@mailinator.com --- 14/04/2014 18:29:42
54 of 300 processed >> Gus.Scheidler@mailinator.com --- 14/04/2014 18:29:42
55 of 300 processed >> Palmer.Trafton@mailinator.com --- 14/04/2014 18:29:42
56 of 300 processed >> Jaime.Quinonez@mailinator.com --- 14/04/2014 18:29:42
57 of 300 processed >> Jewell.Berenbaum@mailinator.com --- 14/04/2014 18:29:42
58 of 300 processed >> Terrence.Mcelvain@mailinator.com --- 14/04/2014 18:29:42
59 of 300 processed >> Austin.Keathley@mailinator.com --- 14/04/2014 18:29:42
60 of 300 processed >> Dick.Ponton@mailinator.com --- 14/04/2014 18:29:42
*** Sendmail script ended *** --- 14/04/2014 18:29:42

-Command received --- 14/04/2014 18:29:42
-Authentification accepted --- 14/04/2014 18:29:42
-Mailer re-powered on. --- 14/04/2014 18:29:42

*** Sendmail script started *** --- 14/04/2014 18:29:43
Authentification accepted --- 14/04/2014 18:29:43
(PACKET 7 of 30) --- 14/04/2014 18:29:43
61 of 300 processed >> Raymundo.Avalos@mailinator.com --- 14/04/2014 18:29:43
62 of 300 processed >> Beau.Montalbo@mailinator.com --- 14/04/2014 18:29:43
63 of 300 processed >> Major.Miele@mailinator.com --- 14/04/2014 18:29:43
64 of 300 processed >> Toney.Stoudemire@mailinator.com --- 14/04/2014 18:29:43
65 of 300 processed >> Valentin.Hawbaker@mailinator.com --- 14/04/2014 18:29:43
66 of 300 processed >> Steve.Quill@mailinator.com --- 14/04/2014 18:29:43
67 of 300 processed >> Garland.Kohlmeier@mailinator.com --- 14/04/2014 18:29:43
68 of 300 processed >> Cristobal.Montemayor@mailinator.com --- 14/04/2014 18:29:43
69 of 300 processed >> Rupert.Gaddis@mailinator.com --- 14/04/2014 18:29:43
70 of 300 processed >> Carey.Trainer@mailinator.com --- 14/04/2014 18:29:43
*** Sendmail script ended *** --- 14/04/2014 18:29:43

-Command received --- 14/04/2014 18:29:43
-Authentification accepted --- 14/04/2014 18:29:43
-Mailer re-powered on. --- 14/04/2014 18:29:43

*** Sendmail script started *** --- 14/04/2014 18:29:43
Authentification accepted --- 14/04/2014 18:29:43
(PACKET 8 of 30) --- 14/04/2014 18:29:43
71 of 300 processed >> Ivory.Miguez@mailinator.com --- 14/04/2014 18:29:43
72 of 300 processed >> Porfirio.Beegle@mailinator.com --- 14/04/2014 18:29:43
73 of 300 processed >> Prince.Cerrone@mailinator.com --- 14/04/2014 18:29:43
74 of 300 processed >> Brendon.Goulet@mailinator.com --- 14/04/2014 18:29:43
75 of 300 processed >> Carlo.Kirkpatrick@mailinator.com --- 14/04/2014 18:29:43
76 of 300 processed >> Mohammed.Clausen@mailinator.com --- 14/04/2014 18:29:43
77 of 300 processed >> Franklyn.Bondy@mailinator.com --- 14/04/2014 18:29:43
78 of 300 processed >> Del.Whetzel@mailinator.com --- 14/04/2014 18:29:43
79 of 300 processed >> Bruce.Blasingame@mailinator.com --- 14/04/2014 18:29:43
80 of 300 processed >> Delmer.Huston@mailinator.com --- 14/04/2014 18:29:43
*** Sendmail script ended *** --- 14/04/2014 18:29:43

-Command received --- 14/04/2014 18:29:43
-Authentification accepted --- 14/04/2014 18:29:43
-Mailer re-powered on. --- 14/04/2014 18:29:43

*** Sendmail script started *** --- 14/04/2014 18:29:44
Authentification accepted --- 14/04/2014 18:29:44
(PACKET 9 of 30) --- 14/04/2014 18:29:44
81 of 300 processed >> Phil.Eslinger@mailinator.com --- 14/04/2014 18:29:44
82 of 300 processed >> Joan.Landreth@mailinator.com --- 14/04/2014 18:29:44
83 of 300 processed >> Alan.Watts@mailinator.com --- 14/04/2014 18:29:44
84 of 300 processed >> Robin.Rando@mailinator.com --- 14/04/2014 18:29:44
85 of 300 processed >> Wilbert.Feltman@mailinator.com --- 14/04/2014 18:29:44
86 of 300 processed >> Federico.Kos@mailinator.com --- 14/04/2014 18:29:44
87 of 300 processed >> Doug.Ringo@mailinator.com --- 14/04/2014 18:29:44
88 of 300 processed >> Gaylord.Cassin@mailinator.com --- 14/04/2014 18:29:44
89 of 300 processed >> Allan.Whisman@mailinator.com --- 14/04/2014 18:29:44
90 of 300 processed >> Sidney.Meehan@mailinator.com --- 14/04/2014 18:29:44
*** Sendmail script ended *** --- 14/04/2014 18:29:44

-Command received --- 14/04/2014 18:29:44
-Authentification accepted --- 14/04/2014 18:29:44
-Mailer re-powered on. --- 14/04/2014 18:29:44

*** Sendmail script started *** --- 14/04/2014 18:29:44
Authentification accepted --- 14/04/2014 18:29:44
(PACKET 10 of 30) --- 14/04/2014 18:29:44
91 of 300 processed >> Gavin.Viera@mailinator.com --- 14/04/2014 18:29:44
92 of 300 processed >> Benton.Freudenburg@mailinator.com --- 14/04/2014 18:29:44
93 of 300 processed >> Willard.Bellinger@mailinator.com --- 14/04/2014 18:29:44
94 of 300 processed >> Dwayne.Tseng@mailinator.com --- 14/04/2014 18:29:44
95 of 300 processed >> Ken.Heflin@mailinator.com --- 14/04/2014 18:29:44
96 of 300 processed >> Ed.Neisler@mailinator.com --- 14/04/2014 18:29:44
97 of 300 processed >> Ethan.Colas@mailinator.com --- 14/04/2014 18:29:44
98 of 300 processed >> Raymond.Croney@mailinator.com --- 14/04/2014 18:29:44
99 of 300 processed >> Craig.Caverly@mailinator.com --- 14/04/2014 18:29:44
100 of 300 processed >> Kenny.Bennetts@mailinator.com --- 14/04/2014 18:29:44
*** Sendmail script ended *** --- 14/04/2014 18:29:44

-Command received --- 14/04/2014 18:29:44
-Authentification accepted --- 14/04/2014 18:29:44
-Mailer re-powered on. --- 14/04/2014 18:29:44

*** Sendmail script started *** --- 14/04/2014 18:29:44
Authentification accepted --- 14/04/2014 18:29:44
(PACKET 11 of 30) --- 14/04/2014 18:29:44
101 of 300 processed >> Boris.Musselman@mailinator.com --- 14/04/2014 18:29:44
102 of 300 processed >> Modesto.Fielding@mailinator.com --- 14/04/2014 18:29:44
103 of 300 processed >> Troy.Hosley@mailinator.com --- 14/04/2014 18:29:44
104 of 300 processed >> Toney.Coppola@mailinator.com --- 14/04/2014 18:29:44
105 of 300 processed >> Chuck.Cordle@mailinator.com --- 14/04/2014 18:29:44
106 of 300 processed >> Kerry.Malecha@mailinator.com --- 14/04/2014 18:29:44
107 of 300 processed >> Manuel.Whitton@mailinator.com --- 14/04/2014 18:29:44
108 of 300 processed >> Jed.Allsop@mailinator.com --- 14/04/2014 18:29:44
109 of 300 processed >> Stewart.Frisch@mailinator.com --- 14/04/2014 18:29:44
110 of 300 processed >> Burl.Henke@mailinator.com --- 14/04/2014 18:29:44
*** Sendmail script ended *** --- 14/04/2014 18:29:44

-Command received --- 14/04/2014 18:29:45
-Authentification accepted --- 14/04/2014 18:29:45
-Mailer re-powered on. --- 14/04/2014 18:29:45

*** Sendmail script started *** --- 14/04/2014 18:29:45
Authentification accepted --- 14/04/2014 18:29:45
(PACKET 12 of 30) --- 14/04/2014 18:29:45
111 of 300 processed >> Horacio.Weary@mailinator.com --- 14/04/2014 18:29:45
112 of 300 processed >> Woodrow.Waterbury@mailinator.com --- 14/04/2014 18:29:45
113 of 300 processed >> Wilmer.Tosi@mailinator.com --- 14/04/2014 18:29:45
114 of 300 processed >> Brooks.Schleich@mailinator.com --- 14/04/2014 18:29:45
115 of 300 processed >> Alan.Willman@mailinator.com --- 14/04/2014 18:29:45
116 of 300 processed >> Quinn.Dunn@mailinator.com --- 14/04/2014 18:29:45
117 of 300 processed >> Dexter.Sadberry@mailinator.com --- 14/04/2014 18:29:45
118 of 300 processed >> Trent.Dailey@mailinator.com --- 14/04/2014 18:29:45
119 of 300 processed >> Murray.Sollars@mailinator.com --- 14/04/2014 18:29:45
120 of 300 processed >> Eldridge.Imai@mailinator.com --- 14/04/2014 18:29:45
*** Sendmail script ended *** --- 14/04/2014 18:29:45

-Command received --- 14/04/2014 18:29:45
-Authentification accepted --- 14/04/2014 18:29:45
-Mailer re-powered on. --- 14/04/2014 18:29:45

*** Sendmail script started *** --- 14/04/2014 18:29:45
Authentification accepted --- 14/04/2014 18:29:45
(PACKET 13 of 30) --- 14/04/2014 18:29:45
121 of 300 processed >> Jonah.Mcbride@mailinator.com --- 14/04/2014 18:29:45
122 of 300 processed >> Trinidad.Kaplan@mailinator.com --- 14/04/2014 18:29:45
123 of 300 processed >> Olin.Hampson@mailinator.com --- 14/04/2014 18:29:45
124 of 300 processed >> Gavin.Holahan@mailinator.com --- 14/04/2014 18:29:45
125 of 300 processed >> Derick.Walston@mailinator.com --- 14/04/2014 18:29:45
126 of 300 processed >> Marcelo.Shima@mailinator.com --- 14/04/2014 18:29:45
127 of 300 processed >> Hans.Boos@mailinator.com --- 14/04/2014 18:29:45
128 of 300 processed >> Claud.Agosta@mailinator.com --- 14/04/2014 18:29:45
129 of 300 processed >> Melvin.Belmonte@mailinator.com --- 14/04/2014 18:29:45
130 of 300 processed >> Jonas.Lauro@mailinator.com --- 14/04/2014 18:29:45
*** Sendmail script ended *** --- 14/04/2014 18:29:45

-Command received --- 14/04/2014 18:29:46
-Authentification accepted --- 14/04/2014 18:29:46
-Mailer re-powered on. --- 14/04/2014 18:29:46

*** Sendmail script started *** --- 14/04/2014 18:29:46
Authentification accepted --- 14/04/2014 18:29:46
(PACKET 14 of 30) --- 14/04/2014 18:29:46
131 of 300 processed >> Dion.Ginther@mailinator.com --- 14/04/2014 18:29:46
132 of 300 processed >> Alex.Vanbeek@mailinator.com --- 14/04/2014 18:29:46
133 of 300 processed >> Theron.Molino@mailinator.com --- 14/04/2014 18:29:46
134 of 300 processed >> Florencio.Kopf@mailinator.com --- 14/04/2014 18:29:46
135 of 300 processed >> Reuben.Ries@mailinator.com --- 14/04/2014 18:29:46
136 of 300 processed >> Erin.Ahrens@mailinator.com --- 14/04/2014 18:29:46
137 of 300 processed >> Clemente.Bickham@mailinator.com --- 14/04/2014 18:29:46
138 of 300 processed >> Kenton.Casazza@mailinator.com --- 14/04/2014 18:29:46
139 of 300 processed >> Alfred.Brazier@mailinator.com --- 14/04/2014 18:29:46
140 of 300 processed >> Moses.Salim@mailinator.com --- 14/04/2014 18:29:46
*** Sendmail script ended *** --- 14/04/2014 18:29:46

-Command received --- 14/04/2014 18:29:46
-Authentification accepted --- 14/04/2014 18:29:46
-Mailer re-powered on. --- 14/04/2014 18:29:46

*** Sendmail script started *** --- 14/04/2014 18:29:46
Authentification accepted --- 14/04/2014 18:29:46
(PACKET 15 of 30) --- 14/04/2014 18:29:46
141 of 300 processed >> Ken.Meade@mailinator.com --- 14/04/2014 18:29:46
142 of 300 processed >> Drew.Lonergan@mailinator.com --- 14/04/2014 18:29:46
143 of 300 processed >> Kurt.Durling@mailinator.com --- 14/04/2014 18:29:46
144 of 300 processed >> Forrest.Portnoy@mailinator.com --- 14/04/2014 18:29:46
145 of 300 processed >> Ned.Whichard@mailinator.com --- 14/04/2014 18:29:46
146 of 300 processed >> Anderson.Lupercio@mailinator.com --- 14/04/2014 18:29:46
147 of 300 processed >> Carter.Rady@mailinator.com --- 14/04/2014 18:29:46
148 of 300 processed >> Sydney.Bonomo@mailinator.com --- 14/04/2014 18:29:46
149 of 300 processed >> Miguel.Whittenburg@mailinator.com --- 14/04/2014 18:29:46
150 of 300 processed >> Ashley.Sesco@mailinator.com --- 14/04/2014 18:29:46
*** Sendmail script ended *** --- 14/04/2014 18:29:46

-Command received --- 14/04/2014 18:29:47
-Authentification accepted --- 14/04/2014 18:29:47
-Mailer re-powered on. --- 14/04/2014 18:29:47

*** Sendmail script started *** --- 14/04/2014 18:29:47
Authentification accepted --- 14/04/2014 18:29:47
(PACKET 16 of 30) --- 14/04/2014 18:29:47
151 of 300 processed >> Wilber.Baucom@mailinator.com --- 14/04/2014 18:29:47
152 of 300 processed >> Foster.Steen@mailinator.com --- 14/04/2014 18:29:47
153 of 300 processed >> Kareem.Marroquin@mailinator.com --- 14/04/2014 18:29:47
154 of 300 processed >> Thad.Stanek@mailinator.com --- 14/04/2014 18:29:47
155 of 300 processed >> Laverne.Cheslock@mailinator.com --- 14/04/2014 18:29:47
156 of 300 processed >> Cristopher.Hannigan@mailinator.com --- 14/04/2014 18:29:47
157 of 300 processed >> Hai.Hepp@mailinator.com --- 14/04/2014 18:29:47
158 of 300 processed >> Hong.Maxham@mailinator.com --- 14/04/2014 18:29:47
159 of 300 processed >> Carlo.Deskin@mailinator.com --- 14/04/2014 18:29:47
160 of 300 processed >> Monty.Mccourt@mailinator.com --- 14/04/2014 18:29:47
*** Sendmail script ended *** --- 14/04/2014 18:29:47

-Command received --- 14/04/2014 18:29:47
-Authentification accepted --- 14/04/2014 18:29:47
-Mailer re-powered on. --- 14/04/2014 18:29:47

*** Sendmail script started *** --- 14/04/2014 18:29:47
Authentification accepted --- 14/04/2014 18:29:47
(PACKET 17 of 30) --- 14/04/2014 18:29:47
161 of 300 processed >> Otto.Niswonger@mailinator.com --- 14/04/2014 18:29:47
162 of 300 processed >> Anton.Rutten@mailinator.com --- 14/04/2014 18:29:47
163 of 300 processed >> Werner.Swaby@mailinator.com --- 14/04/2014 18:29:47
164 of 300 processed >> Charley.Alvelo@mailinator.com --- 14/04/2014 18:29:47
165 of 300 processed >> Freeman.Letchworth@mailinator.com --- 14/04/2014 18:29:47
166 of 300 processed >> Armand.Wingert@mailinator.com --- 14/04/2014 18:29:47
167 of 300 processed >> Julian.Vanderzee@mailinator.com --- 14/04/2014 18:29:47
168 of 300 processed >> Lavern.Parenti@mailinator.com --- 14/04/2014 18:29:47
169 of 300 processed >> Boyd.Frailey@mailinator.com --- 14/04/2014 18:29:47
170 of 300 processed >> Valentin.Giordano@mailinator.com --- 14/04/2014 18:29:47
*** Sendmail script ended *** --- 14/04/2014 18:29:47

-Command received --- 14/04/2014 18:29:48
-Authentification accepted --- 14/04/2014 18:29:48
-Mailer re-powered on. --- 14/04/2014 18:29:48

*** Sendmail script started *** --- 14/04/2014 18:29:48
Authentification accepted --- 14/04/2014 18:29:48
(PACKET 18 of 30) --- 14/04/2014 18:29:48
171 of 300 processed >> Coy.Marron@mailinator.com --- 14/04/2014 18:29:48
172 of 300 processed >> Wilford.Kinzer@mailinator.com --- 14/04/2014 18:29:48
173 of 300 processed >> Alfonso.Ezzell@mailinator.com --- 14/04/2014 18:29:48
174 of 300 processed >> Vincent.Leonetti@mailinator.com --- 14/04/2014 18:29:48
175 of 300 processed >> Rhett.Beadles@mailinator.com --- 14/04/2014 18:29:48
176 of 300 processed >> Lupe.Hammer@mailinator.com --- 14/04/2014 18:29:48
177 of 300 processed >> Jame.Dinan@mailinator.com --- 14/04/2014 18:29:51
178 of 300 processed >> Thaddeus.Pipkins@mailinator.com --- 14/04/2014 18:29:51
179 of 300 processed >> Quinton.Cooney@mailinator.com --- 14/04/2014 18:29:51
180 of 300 processed >> Terry.Dunaway@mailinator.com --- 14/04/2014 18:29:51
*** Sendmail script ended *** --- 14/04/2014 18:29:51

-Command received --- 14/04/2014 18:29:51
-Authentification accepted --- 14/04/2014 18:29:51
-Mailer re-powered on. --- 14/04/2014 18:29:51

*** Sendmail script started *** --- 14/04/2014 18:29:51
Authentification accepted --- 14/04/2014 18:29:51
(PACKET 19 of 30) --- 14/04/2014 18:29:51
181 of 300 processed >> Claud.Belknap@mailinator.com --- 14/04/2014 18:29:51
182 of 300 processed >> Jacob.Chen@mailinator.com --- 14/04/2014 18:29:51
183 of 300 processed >> Gil.Frigo@mailinator.com --- 14/04/2014 18:29:51
184 of 300 processed >> Rocco.Sewell@mailinator.com --- 14/04/2014 18:29:51
185 of 300 processed >> Johnathan.Farabaugh@mailinator.com --- 14/04/2014 18:29:51
186 of 300 processed >> Alden.Moser@mailinator.com --- 14/04/2014 18:29:51
187 of 300 processed >> Kraig.Blane@mailinator.com --- 14/04/2014 18:29:51
188 of 300 processed >> Jorge.Burgin@mailinator.com --- 14/04/2014 18:29:51
189 of 300 processed >> James.Janey@mailinator.com --- 14/04/2014 18:29:51
190 of 300 processed >> Josiah.Jinks@mailinator.com --- 14/04/2014 18:29:51
*** Sendmail script ended *** --- 14/04/2014 18:29:51

-Command received --- 14/04/2014 18:29:51
-Authentification accepted --- 14/04/2014 18:29:51
-Mailer re-powered on. --- 14/04/2014 18:29:51

*** Sendmail script started *** --- 14/04/2014 18:29:52
Authentification accepted --- 14/04/2014 18:29:52
(PACKET 20 of 30) --- 14/04/2014 18:29:52
191 of 300 processed >> Derick.Mullings@mailinator.com --- 14/04/2014 18:29:52
192 of 300 processed >> Bud.Mabe@mailinator.com --- 14/04/2014 18:29:52
193 of 300 processed >> Clarence.Platt@mailinator.com --- 14/04/2014 18:29:52
194 of 300 processed >> Russell.Averette@mailinator.com --- 14/04/2014 18:29:52
195 of 300 processed >> Rudolf.Bohnsack@mailinator.com --- 14/04/2014 18:29:52
196 of 300 processed >> Melvin.Sikora@mailinator.com --- 14/04/2014 18:29:52
197 of 300 processed >> Parker.Woll@mailinator.com --- 14/04/2014 18:29:52
198 of 300 processed >> Gordon.Piatt@mailinator.com --- 14/04/2014 18:29:52
199 of 300 processed >> Brad.Romine@mailinator.com --- 14/04/2014 18:29:52
200 of 300 processed >> Houston.Kuehn@mailinator.com --- 14/04/2014 18:29:52
*** Sendmail script ended *** --- 14/04/2014 18:29:52

-Command received --- 14/04/2014 18:29:52
-Authentification accepted --- 14/04/2014 18:29:52
-Mailer re-powered on. --- 14/04/2014 18:29:52

*** Sendmail script started *** --- 14/04/2014 18:29:52
Authentification accepted --- 14/04/2014 18:29:52
(PACKET 21 of 30) --- 14/04/2014 18:29:52
201 of 300 processed >> Delmar.Powell@mailinator.com --- 14/04/2014 18:29:52
202 of 300 processed >> Jean.Maxwell@mailinator.com --- 14/04/2014 18:29:52
203 of 300 processed >> Minh.Showman@mailinator.com --- 14/04/2014 18:29:52
204 of 300 processed >> Kendrick.Everett@mailinator.com --- 14/04/2014 18:29:52
205 of 300 processed >> Cristobal.Ennals@mailinator.com --- 14/04/2014 18:29:52
206 of 300 processed >> Lanny.Bard@mailinator.com --- 14/04/2014 18:29:52
207 of 300 processed >> Ernie.Kropp@mailinator.com --- 14/04/2014 18:29:52
208 of 300 processed >> Darius.Morein@mailinator.com --- 14/04/2014 18:29:52
209 of 300 processed >> Buster.Grego@mailinator.com --- 14/04/2014 18:29:52
210 of 300 processed >> Eugenio.Steffensen@mailinator.com --- 14/04/2014 18:29:52
*** Sendmail script ended *** --- 14/04/2014 18:29:52

-Command received --- 14/04/2014 18:29:52
-Authentification accepted --- 14/04/2014 18:29:52
-Mailer re-powered on. --- 14/04/2014 18:29:52

*** Sendmail script started *** --- 14/04/2014 18:29:53
Authentification accepted --- 14/04/2014 18:29:53
(PACKET 22 of 30) --- 14/04/2014 18:29:53
211 of 300 processed >> Cordell.Skerrett@mailinator.com --- 14/04/2014 18:29:53
212 of 300 processed >> Frank.Blundell@mailinator.com --- 14/04/2014 18:29:53
213 of 300 processed >> Micah.Kees@mailinator.com --- 14/04/2014 18:29:53
214 of 300 processed >> Thurman.Hendriks@mailinator.com --- 14/04/2014 18:29:53
215 of 300 processed >> Jayson.Lutz@mailinator.com --- 14/04/2014 18:29:53
216 of 300 processed >> Denver.Maguire@mailinator.com --- 14/04/2014 18:29:53
217 of 300 processed >> Shad.Bechtol@mailinator.com --- 14/04/2014 18:29:53
218 of 300 processed >> Duane.Cockett@mailinator.com --- 14/04/2014 18:29:53
219 of 300 processed >> Woodrow.Crownover@mailinator.com --- 14/04/2014 18:29:53
220 of 300 processed >> Basil.Osburn@mailinator.com --- 14/04/2014 18:29:53
*** Sendmail script ended *** --- 14/04/2014 18:29:53

-Command received --- 14/04/2014 18:29:53
-Authentification accepted --- 14/04/2014 18:29:53
-Mailer re-powered on. --- 14/04/2014 18:29:53

*** Sendmail script started *** --- 14/04/2014 18:29:53
Authentification accepted --- 14/04/2014 18:29:53
(PACKET 23 of 30) --- 14/04/2014 18:29:53
221 of 300 processed >> Rudolph.Spadafora@mailinator.com --- 14/04/2014 18:29:53
222 of 300 processed >> Cesar.Mceachin@mailinator.com --- 14/04/2014 18:29:53
223 of 300 processed >> Jerome.Hornbuckle@mailinator.com --- 14/04/2014 18:29:53
224 of 300 processed >> Tom.Tousant@mailinator.com --- 14/04/2014 18:29:53
225 of 300 processed >> Amos.Marshburn@mailinator.com --- 14/04/2014 18:29:53
226 of 300 processed >> Sung.Darst@mailinator.com --- 14/04/2014 18:29:53
227 of 300 processed >> Darrin.Bizier@mailinator.com --- 14/04/2014 18:29:53
228 of 300 processed >> Jon.Lesniak@mailinator.com --- 14/04/2014 18:29:53
229 of 300 processed >> Olen.Bouley@mailinator.com --- 14/04/2014 18:29:53
230 of 300 processed >> Abe.Rey@mailinator.com --- 14/04/2014 18:29:53
*** Sendmail script ended *** --- 14/04/2014 18:29:53

-Command received --- 14/04/2014 18:29:54
-Authentification accepted --- 14/04/2014 18:29:54
-Mailer re-powered on. --- 14/04/2014 18:29:54

*** Sendmail script started *** --- 14/04/2014 18:29:54
Authentification accepted --- 14/04/2014 18:29:54
(PACKET 24 of 30) --- 14/04/2014 18:29:54
231 of 300 processed >> Guadalupe.Uhl@mailinator.com --- 14/04/2014 18:29:54
232 of 300 processed >> Fabian.Grand@mailinator.com --- 14/04/2014 18:29:54
233 of 300 processed >> Rubin.Beeks@mailinator.com --- 14/04/2014 18:29:54
234 of 300 processed >> Ervin.Mcdow@mailinator.com --- 14/04/2014 18:29:54
235 of 300 processed >> Brent.Girouard@mailinator.com --- 14/04/2014 18:29:54
236 of 300 processed >> King.Schupp@mailinator.com --- 14/04/2014 18:29:54
237 of 300 processed >> Josh.Nadler@mailinator.com --- 14/04/2014 18:29:54
238 of 300 processed >> Armando.Mcgurk@mailinator.com --- 14/04/2014 18:29:54
239 of 300 processed >> Rosendo.Carruth@mailinator.com --- 14/04/2014 18:29:54
240 of 300 processed >> Pasquale.Peveto@mailinator.com --- 14/04/2014 18:29:54
*** Sendmail script ended *** --- 14/04/2014 18:29:54

-Command received --- 14/04/2014 18:29:54
-Authentification accepted --- 14/04/2014 18:29:54
-Mailer re-powered on. --- 14/04/2014 18:29:54

*** Sendmail script started *** --- 14/04/2014 18:29:55
Authentification accepted --- 14/04/2014 18:29:55
(PACKET 25 of 30) --- 14/04/2014 18:29:55
241 of 300 processed >> Ramiro.Barter@mailinator.com --- 14/04/2014 18:29:55
242 of 300 processed >> Winford.Costantino@mailinator.com --- 14/04/2014 18:29:55
243 of 300 processed >> Clement.Pinkley@mailinator.com --- 14/04/2014 18:29:55
244 of 300 processed >> Errol.Goines@mailinator.com --- 14/04/2014 18:29:55
245 of 300 processed >> Edmond.Tejeda@mailinator.com --- 14/04/2014 18:29:55
246 of 300 processed >> Wilfredo.Jelks@mailinator.com --- 14/04/2014 18:29:55
247 of 300 processed >> Lynwood.Fils@mailinator.com --- 14/04/2014 18:29:55
248 of 300 processed >> Carson.Oxner@mailinator.com --- 14/04/2014 18:29:55
249 of 300 processed >> Valentine.Dealba@mailinator.com --- 14/04/2014 18:29:55
250 of 300 processed >> Evan.Boser@mailinator.com --- 14/04/2014 18:29:55
*** Sendmail script ended *** --- 14/04/2014 18:29:55

-Command received --- 14/04/2014 18:29:55
-Authentification accepted --- 14/04/2014 18:29:55
-Mailer re-powered on. --- 14/04/2014 18:29:55

*** Sendmail script started *** --- 14/04/2014 18:29:55
Authentification accepted --- 14/04/2014 18:29:55
(PACKET 26 of 30) --- 14/04/2014 18:29:55
251 of 300 processed >> Miquel.Bellis@mailinator.com --- 14/04/2014 18:29:55
252 of 300 processed >> Ignacio.Melecio@mailinator.com --- 14/04/2014 18:29:55
253 of 300 processed >> Lindsay.Mallon@mailinator.com --- 14/04/2014 18:29:55
254 of 300 processed >> Norbert.Valade@mailinator.com --- 14/04/2014 18:29:55
255 of 300 processed >> Paris.Dillingham@mailinator.com --- 14/04/2014 18:29:55
256 of 300 processed >> Chas.Dibernardo@mailinator.com --- 14/04/2014 18:29:55
257 of 300 processed >> Rob.Klinger@mailinator.com --- 14/04/2014 18:29:55
258 of 300 processed >> Adolph.Leister@mailinator.com --- 14/04/2014 18:29:55
259 of 300 processed >> Lyndon.Weinman@mailinator.com --- 14/04/2014 18:29:55
260 of 300 processed >> Lyman.Ayars@mailinator.com --- 14/04/2014 18:29:55
*** Sendmail script ended *** --- 14/04/2014 18:29:55

-Command received --- 14/04/2014 18:29:55
-Authentification accepted --- 14/04/2014 18:29:55
-Mailer re-powered on. --- 14/04/2014 18:29:55

*** Sendmail script started *** --- 14/04/2014 18:29:56
Authentification accepted --- 14/04/2014 18:29:56
(PACKET 27 of 30) --- 14/04/2014 18:29:56
261 of 300 processed >> Dwain.Seguin@mailinator.com --- 14/04/2014 18:29:56
262 of 300 processed >> Waylon.Mcburney@mailinator.com --- 14/04/2014 18:29:56
263 of 300 processed >> Leonel.Cygan@mailinator.com --- 14/04/2014 18:29:56
264 of 300 processed >> Gerardo.Joshi@mailinator.com --- 14/04/2014 18:29:56
265 of 300 processed >> Devon.Brass@mailinator.com --- 14/04/2014 18:29:56
266 of 300 processed >> Britt.Lebowitz@mailinator.com --- 14/04/2014 18:29:56
267 of 300 processed >> Doyle.Husbands@mailinator.com --- 14/04/2014 18:29:56
268 of 300 processed >> Michal.Ram@mailinator.com --- 14/04/2014 18:29:56
269 of 300 processed >> Mariano.Farley@mailinator.com --- 14/04/2014 18:29:56
270 of 300 processed >> Hector.Audet@mailinator.com --- 14/04/2014 18:29:56
*** Sendmail script ended *** --- 14/04/2014 18:29:56

-Command received --- 14/04/2014 18:29:56
-Authentification accepted --- 14/04/2014 18:29:56
-Mailer re-powered on. --- 14/04/2014 18:29:56

*** Sendmail script started *** --- 14/04/2014 18:29:56
Authentification accepted --- 14/04/2014 18:29:56
(PACKET 28 of 30) --- 14/04/2014 18:29:56
271 of 300 processed >> Richie.Delany@mailinator.com --- 14/04/2014 18:29:56
272 of 300 processed >> Alexis.Dale@mailinator.com --- 14/04/2014 18:29:56
273 of 300 processed >> Edmond.Schick@mailinator.com --- 14/04/2014 18:29:56
274 of 300 processed >> Cornell.Leite@mailinator.com --- 14/04/2014 18:29:56
275 of 300 processed >> Pierre.Peasley@mailinator.com --- 14/04/2014 18:29:56
276 of 300 processed >> Chester.Lohmann@mailinator.com --- 14/04/2014 18:29:56
277 of 300 processed >> Lewis.Jobe@mailinator.com --- 14/04/2014 18:29:56
278 of 300 processed >> Darrel.Farinas@mailinator.com --- 14/04/2014 18:29:56
279 of 300 processed >> Willie.Credle@mailinator.com --- 14/04/2014 18:29:56
280 of 300 processed >> Irving.Bristow@mailinator.com --- 14/04/2014 18:29:56
*** Sendmail script ended *** --- 14/04/2014 18:29:56

-Command received --- 14/04/2014 18:29:56
-Authentification accepted --- 14/04/2014 18:29:56
-Mailer re-powered on. --- 14/04/2014 18:29:56

*** Sendmail script started *** --- 14/04/2014 18:29:57
Authentification accepted --- 14/04/2014 18:29:57
(PACKET 29 of 30) --- 14/04/2014 18:29:57
281 of 300 processed >> Tory.Laino@mailinator.com --- 14/04/2014 18:29:57
282 of 300 processed >> Fernando.Mcmakin@mailinator.com --- 14/04/2014 18:29:57
283 of 300 processed >> Gerard.Amon@mailinator.com --- 14/04/2014 18:29:57
284 of 300 processed >> Vance.Trojacek@mailinator.com --- 14/04/2014 18:29:57
285 of 300 processed >> Calvin.Rode@mailinator.com --- 14/04/2014 18:29:57
286 of 300 processed >> Mike.Hollingworth@mailinator.com --- 14/04/2014 18:29:57
287 of 300 processed >> Tom.Kellerhouse@mailinator.com --- 14/04/2014 18:29:57
288 of 300 processed >> Bryant.Lambrecht@mailinator.com --- 14/04/2014 18:29:57
289 of 300 processed >> Jon.Linscott@mailinator.com --- 14/04/2014 18:29:57
290 of 300 processed >> Jamal.Maclaren@mailinator.com --- 14/04/2014 18:29:57
*** Sendmail script ended *** --- 14/04/2014 18:29:57

-Command received --- 14/04/2014 18:29:57
-Authentification accepted --- 14/04/2014 18:29:57
-Mailer re-powered on. --- 14/04/2014 18:29:57

*** Sendmail script started *** --- 14/04/2014 18:29:57
Authentification accepted --- 14/04/2014 18:29:57
(PACKET 30 of 30) --- 14/04/2014 18:29:57
291 of 300 processed >> Napoleon.Piersall@mailinator.com --- 14/04/2014 18:29:57
292 of 300 processed >> Reginald.Weiser@mailinator.com --- 14/04/2014 18:29:57
293 of 300 processed >> Garry.Seckman@mailinator.com --- 14/04/2014 18:29:57
294 of 300 processed >> Kory.Koepsell@mailinator.com --- 14/04/2014 18:29:57
295 of 300 processed >> Jospeh.Theurer@mailinator.com --- 14/04/2014 18:29:57
296 of 300 processed >> Jere.Para@mailinator.com --- 14/04/2014 18:29:57
297 of 300 processed >> Leandro.Steib@mailinator.com --- 14/04/2014 18:29:57
298 of 300 processed >> Jarred.Salido@mailinator.com --- 14/04/2014 18:29:57
299 of 300 processed >> Ernie.Keifer@mailinator.com --- 14/04/2014 18:29:57
300 of 300 processed >> Jesus.Warfel@mailinator.com --- 14/04/2014 18:29:57
*** Sendmail script ended *** --- 14/04/2014 18:29:57

Edited by holdorfold
Link to comment
Share on other sites

I hear you. But, I can tell you from experience that what may seem obvious may not always be. I've chased many problems down "knowing" that the problem had nothing to do with "X" and wasting a lot of time researching other possibilities. Only to find out the issue was staring right at me.

 

Is there some reason you are processing the data in chunks like this? Also, the file you uploaded is just a CSV with firstnames, lastnames and email addresses. Based on your code I should see things such as "<!asplit!>" in there.

 

 

EDIT: OK, I think this is another one of those times. I didn't even consider how long the "sleep" time might be IN TOTAL. You are making it a random number from 2 to 20. I think you are executing 10 records on each page execution. SO, the time would be anywhere from 20 to 200 seconds (with 1 or 2 for actual execution). The 200 seconds shouldn't be a problem, Now, the 200 seconds should never really occur - the changes are pretty rare. So, even in the middle of 100 seconds you are looking at the page taking a minute and a half to complete. I'm guessing the script is timing out. You should really test this without JavaScript if possible (just put the URL into the browser passign the appropriate parameter) then you can see any errors - if they do occur. That all makes sense now as to why it does it and why it does it randomly.

Link to comment
Share on other sites

Yeah the reason I'm processing the CSV in chunks is because I get a timeout on the php script at around 15-20 minutes when processing the whole thing. In a real world situation the CSV being processed might be even bigger than the one I'm testing with as well, so the only solution was to parse the CSV in chunks.

The CSV file uploaded is loaded by my javascript application which loads the data into an array and turns it into an array of strings (which are the packets sent). This is the part of the javascript which puts the packet together:

function SendTestData(tParse){

     var tAuth = tPasswordWindow.childNodes[0].value;

   //Create email
    var tSubject =   tSubjectWindow.childNodes[0].value;
   var tValue = tMessageWindow.getElementsByTagName("textarea")[0].value;
   var tMessage=tSubject+"(/subject)"+tValue;
    
     //Merge strings
     tSendData=dataString[tParse];
     tSendData=tSendData+"(<!dsplit!>)"+tMessage;
    
     //Add packet details (packet/totalpackets/totalcontacts)
     var tPacketDetails = (tParse+1) + "-" +dataString.length+"-"+data.length;
     tSendData=tPacketDetails+"(<!psplit!>)"+tSendData
         
     //Add authentification code
     tSendData=tAuth+"(<!asplit!>)"+tSendData;
         
     SendPHP(tSendData,parseHandler);
     writeDisplayConsole("Packet "+(tParse+1)+ " sent");
    
}

The output of this for the first packet of that CSV file is:

examplepass(<!asplit!>)1-30-300(<!psplit!>)Jeffrey^!Creviston^!Jeffrey.Creviston@mailinator.com^!<!Thaddeus^!Brame^!Thaddeus.Brame@mailinator.com^!<!Isiah^!Shutt^!Isiah.Shutt@mailinator.com^!<!Gregory^!Chappell^!Gregory.Chappell@mailinator.com^!<!Kenton^!Kanter^!Kenton.Kanter@mailinator.com^!<!Fredrick^!Ake^!Fredrick.Ake@mailinator.com^!<!Columbus^!Mayhue^!Columbus.Mayhue@mailinator.com^!<!Mervin^!Delagarza^!Mervin.Delagarza@mailinator.com^!<!Joaquin^!Pennington^!Joaquin.Pennington@mailinator.com^!<!Lyman^!Alaniz^!Lyman.Alaniz@mailinator.com^!<!(<!dsplit!>)Test subject(/subject)Test message
Link to comment
Share on other sites

EDIT: OK, I think this is another one of those times. I didn't even consider how long the "sleep" time might be IN TOTAL. You are making it a random number from 2 to 20. I think you are executing 10 records on each page execution. SO, the time would be anywhere from 20 to 200 seconds (with 1 or 2 for actual execution). The 200 seconds shouldn't be a problem, Now, the 200 seconds should never really occur - the changes are pretty rare. So, even in the middle of 100 seconds you are looking at the page taking a minute and a half to complete. I'm guessing the script is timing out. You should really test this without JavaScript if possible (just put the URL into the browser passign the appropriate parameter) then you can see any errors - if they do occur. That all makes sense now as to why it does it and why it does it randomly.

 

This is exactly what I thought given the situation, but the reason I'm doing it in chunks is because the script was previously timing out after about 15-20 minutes when I was just sending the whole CSV over. But like you say the maximum time the script will run is about 3.5 minutes so I couldn't see how it would be a timeout... but it must be something in this vein.

 

I'll try testing it out without the Javascript though to double check.

Edited by holdorfold
Link to comment
Share on other sites

Ok, I used Chrome Rest Client and sent the whole encoded CSV in one string and the php script timed out after 29 minutes on record 158 but it didn't try and restart itself. I've had similar results earlier when sending the whole CSV in one string via javascript. Most of the time it was the same, but a couple of times the php script stopped and restarted. Someone suggested it could be a browser extention causing it like Adblock. I'm not sure how though.

I think what I might do is create a system where if the script stops and tries to restart itself in the middle of processing a packet then the records that weren't processed are stored in a file and processed seperately at the end. Clunky and not very elegant, but I can't figure out what the problem is so might have to do something like that.

 

Edited by holdorfold
Link to comment
Share on other sites

You are making this more complicated than it needs to be. If you need to process it in chunks as you say, then you were already there. The problem was you were implementing the sleep() on each record in the chunk. Seems you should put it at the end of the script before you process the next chunk!

 

But, I'm really not understanding the point of this script. It doesn't seem to do anything except make log files. If you are having timeout issues I think it is because of the manner that you are creating those log files. Every time you want to add a line to the log file you are opening the file, reading the entire contents into memory, appending a new line, and the writing the entire contents back tot he file. You can simply open the file in "append" mode and just send the new line to be appended to the content. Plus, you should only open the file ONCE per script execution instead of opening it each time you want to add a line to the log file.

 

Based on the type of processing I see in this script you should be able to process many thousands of records without having to break it into chunks. If you can provide a complete input file I might be able to help.

Link to comment
Share on other sites

I've changed it so the script appends to the log file instead of copying the whole thing again. Still get the error though. Also timeouts are happening after 20 minutes, but I'm getting the error in the 0-3.5 minute range.

 

But, I'm really not understanding the point of this script. It doesn't seem to do anything except make log files.


Yeah haha, true. It's actually an emailer, but I've replaced the mailing function with writing to a log for testing purposes. This is why the sleep () is after each record.. you have to wait a little bit after sending each email.
Link to comment
Share on other sites

 

Also timeouts are happening after 20 minutes, but I'm getting the error in the 0-3.5 minute range.

 

There may be two different types of timeouts at play here. Typical "session" timeouts are set for 20 minutes. So, if you have stores information in the session it will expire if the user is inactive for 20 minutes. That is completely different from the execution timeout. That is how long a script can run before the webserver gives up. This is to prevent situations where the script may have an infinite loop. Otherwise, one bad script would bring down the server. I'm no web server guru, but I though that 300 seconds was the maximum amount that the max execution time could be set to (i.e. 10 minutes), but the default setting is much lower (maybe 30 seconds). At least that's true in Apache servers (I think).

 

So, let's go back to what you are trying to achieve. You want to put a gap in between each email. I'm assuming to stop from it being triggered as spam? You could use a service to send the emails which would not have that limitation. Plus, why the random 2-20 second delay? Why not just set it to 1 or 2 seconds for all of them?

 

In any event, I have a better idea to achieve what you are trying to do (although I think there is a better solution altogether). Instead of trying to send the emails when you are processing the data - separate that logic. Have the script run ONE TIME to completely process ALL the data and store it. A database would be best, but you could use a log file. That should reduce a lot of the complexity - especially around the kill switch and other triggers you had to use.

 

Now, once you have all the processed data in a single format you can call a script with a delay that will pull N records from the repository, send the emails, and then remove those records from the repository. Then you don't have to have any logic to remember what was or was not processed! In fact you could build one script to do both the processing and the emailing.

 

Here is a VERY basic mock example of how the framework might look

<?php
 
$dataFile = 'path/name.txt';
 
if(isset($_POST['value_to_determine_there_is_a_new_input']))
{
    //Insert logic here to process the entire input file
    //and create a data file with the processed results
    //Create file $dataFile with the processed data
}
else
{
    if(file_exists($dataFile))
    {
        //Remove a record (or records) from the data file
        //send the email(s)
        //If no more records exist in data file - delete it
    }
    else
    {
        //There are no records to process
        exit();
    }
 
}
 
sleep(2);
 
?>
Edited by Psycho
Link to comment
Share on other sites

The timeout I was referring to happening after about 20 minutes was the execution timeout. The delay of a random number to up to 20 seconds was advised to me from someone who has knowledge of anti-spam and mailers. It's to make it seem more natural so it's something I must have in there.

Your idea sounds good, but I can still see there being timeout issues if I'm processing the whole database in one execution. That was my initial strategy but because of the execution timeout issue I had to create the parsing system. I've spent so much time on this and it's pretty much finished now so I won't start from scratch. I've implemented and tested a system today where the script detects if there was a fault with the previous packet and records the unsent data to send again as a packet at the end so it's pretty much finished, just a few tweaks and it's fully fit for purpose.

Thanks for your time and help though. I learnt quite a bit about effiencies and considerations for any future projects :)

Link to comment
Share on other sites

Your idea sounds good, but I can still see there being timeout issues if I'm processing the whole database in one execution. That was my initial strategy but because of the execution timeout issue I had to create the parsing system. I've spent so much time on this and it's pretty much finished now so I won't start from scratch. I've implemented and tested a system today where the script detects if there was a fault with the previous packet and records the unsent data to send again as a packet at the end so it's pretty much finished, just a few tweaks and it's fully fit for purpose.

 

There should be no issue processing all the input in one execution unless you are processing tens of thousands of records. Then you can send the emails with whatever delays you want and would completely make the current problem moot. The problem is the script is trying to do everything in one execution. Although there are better ways to send out a lot of email than putting a delay between each one.

 

It's your script, but the current process just seems so overly complicated to me. If/when you have problems in the future you're going to spend an inordinate amount of time trying to find/fix the problems. I'll look at a simpler solution using the example data you provided above, but what I'd really like to see is an example of what the complete set of data would be. I'm assuming you are splitting the data into packets in some way. I'd really like to see what the complete set of data looks like and know where it is coming from: are you reading it from an external file or service, uploading the file, etc.

Link to comment
Share on other sites

A CSV file is uploaded via the javascript application which then turns it into parseable strings. Any size CSV file will do and it's designed for a friend who regularly produces CSV files like the example I gave. The javascript file uploading facility is easy, so he doesn't need access to any backend he just uploads a CSV, enters an email and clicks send and the progress is shown in the javascript application.

 

The CSV is turned into an array using:

data = $.csv.toArrays(CSVString);
data.splice(0, 1); //gets rid of the csv headers

It's turned into packets using this function:

function CSVtoSend(){

            dataString.length=0;
            var adder=0;
            var packet=0;
            dataString[0]="";
            
      for(var row in data) {     
        //create a new packet for every x contacts
                adder=adder+1;
                if (adder==11){
                     adder=1;
                     packet=packet+1;
                }
                
                for(var item in data[row]) {
        dataString[packet] += data[row][item] + '^!';
        }
        dataString[packet] += '<!';
            }            
}

So if the CSV here http://www.qfpost.com/file/d?g=r5smIylvK for example was uploaded then it would turn into the following packets:

 

dataString[0] = Jordan^!Terence^!Jordan.Terence@mailinator.com^!<!Marcel^!Miguel^!Marcel.Miguel@mailinator.com^!<!Carlton^!Preston^!Carlton.Preston@mailinator.com^!<!Guy^!Marlin^!Guy.Marlin@mailinator.com^!<!Isreal^!Leslie^!Isreal.Leslie@mailinator.com^!<!Stan^!Quinton^!Stan.Quinton@mailinator.com^!<!Boyd^!Roman^!Boyd.Roman@mailinator.com^!<!Hubert^!Sammy^!Hubert.Sammy@mailinator.com^!<!Federico^!Kirby^!Federico.Kirby@mailinator.com^!<!Thomas^!Quentin^!Thomas.Quentin@mailinator.com^!<!

 

dataString[1] = Reuben^!Josiah^!Reuben.Josiah@mailinator.com^!<!Stephen^!Jarred^!Stephen.Jarred@mailinator.com^!<!Cory^!Morgan^!Cory.Morgan@mailinator.com^!<!Owen^!Stanton^!Owen.Stanton@mailinator.com^!<!Edwin^!Otto^!Edwin.Otto@mailinator.com^!<!Scottie^!Charley^!Scottie.Charley@mailinator.com^!<!Gail^!Leigh^!Gail.Leigh@mailinator.com^!<!Renaldo^!Art^!Renaldo.Art@mailinator.com^!<!Brad^!Alvaro^!Brad.Alvaro@mailinator.com^!<!

Edited by holdorfold
Link to comment
Share on other sites

Give me a bit and I'll provide an improved script. This process is being made much more difficult than it needs to be. I'm assuming on the upload it also includes the email subject and the email body.

Edited by Psycho
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.