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

Side by Side Diff: LayoutTests/http/tests/resources/load-and-stall.cgi

Issue 155173003: checkpoint unix version of apache win32 patch. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: re-daemonize apache on unix Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/perl -w 1 #!/usr/bin/perl -wT
2 2
3 use CGI; 3 use CGI;
4 use File::stat; 4 use File::stat;
5 use Time::HiRes; 5 use Time::HiRes;
6 6
7 $query = new CGI; 7 $query = new CGI;
8 $name = $query->param('name'); 8 $name = $query->param('name');
9 $stallAt = $query->param('stallAt'); 9 $stallAt = $query->param('stallAt');
10 $stallFor = $query->param('stallFor'); 10 $stallFor = $query->param('stallFor');
11 $mimeType = $query->param('mimeType'); 11 $mimeType = $query->param('mimeType');
(...skipping 10 matching lines...) Expand all
22 $total += $n; 22 $total += $n;
23 if ($total > $stallAt) { 23 if ($total > $stallAt) {
24 if (defined $stallFor) { 24 if (defined $stallFor) {
25 Time::HiRes::sleep($stallFor) 25 Time::HiRes::sleep($stallFor)
26 } 26 }
27 last; 27 last;
28 } 28 }
29 print $data; 29 print $data;
30 } 30 }
31 close(FILE); 31 close(FILE);
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/plugins/resources/slow-resource.pl ('k') | LayoutTests/http/tests/resources/post-and-verify.cgi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698