Skip to content

Commit

Permalink
Update cycle_noolite.php
Browse files Browse the repository at this point in the history
Delay fix
  • Loading branch information
sergejey committed Oct 14, 2019
1 parent 586f198 commit 8072281
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/cycle_noolite.php
Expand Up @@ -48,6 +48,7 @@
$readInProgress = 0;
$readStarted = 0;
$sequence = '';
$sequenceStart = false;
while (1) {

// CHECKPORT
Expand All @@ -68,6 +69,7 @@
$in = $ch;
$readInProgress = 1;
$readStarted = time();
$sequenceStart = true;
} elseif ($ch == 'ae') {
$errors=0;
$line = $in . $ch;
Expand All @@ -90,9 +92,12 @@
echo date('Y-m-d H:i:s') . " URL: $url\n";
DebMes("IN: $line", 'noolite');
$res = get_headers($url);
$sequenceStart = false;
} else {
$in .= $ch;
$readInProgress = 2;
if ($sequenceStart) {
$in .= $ch;
$readInProgress = 2;
}
}

if ($readInProgress > 0 && (time() - $readStarted) > 3) {
Expand Down

0 comments on commit 8072281

Please sign in to comment.