Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/resources/load-and-stall.cgi

Issue 2645953004: Update duration when demuxed packets exceed known duration. (Closed)
Patch Set: Remove broken CGI server. Rate limit duration changed events. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698