| Index: third_party/WebKit/LayoutTests/http/tests/resources/load-and-stall.cgi
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/resources/load-and-stall.cgi b/third_party/WebKit/LayoutTests/http/tests/resources/load-and-stall.cgi
|
| deleted file mode 100755
|
| index f0aa12dae7c1251e25d0895aa0c0170873214363..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/http/tests/resources/load-and-stall.cgi
|
| +++ /dev/null
|
| @@ -1,31 +0,0 @@
|
| -#!/usr/bin/perl -wT
|
| -
|
| -use CGI;
|
| -use File::stat;
|
| -use Time::HiRes;
|
| -
|
| -$query = new CGI;
|
| -$name = $query->param('name');
|
| -$stallAt = $query->param('stallAt');
|
| -$stallFor = $query->param('stallFor');
|
| -$mimeType = $query->param('mimeType');
|
| -
|
| -my $filesize = stat($name)->size;
|
| -print "Content-type: " . $mimeType . "\n";
|
| -print "Content-Length: " . $filesize . "\n\n";
|
| -
|
| -open FILE, $name or die;
|
| -binmode FILE;
|
| -$total = 0;
|
| -my ($buf, $data, $n);
|
| -while (($n = read FILE, $data, 1024) != 0) {
|
| - $total += $n;
|
| - if ($total > $stallAt) {
|
| - if (defined $stallFor) {
|
| - Time::HiRes::sleep($stallFor)
|
| - }
|
| - last;
|
| - }
|
| - print $data;
|
| -}
|
| -close(FILE);
|
|
|