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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/resources/chunked-encoding-scope.php

Issue 2645493002: Increase the lifetime of Navigation Preload related objects. (Closed)
Patch Set: check fetchEvent in ServiceWorkerGlobalScopeProxy::onNavigationPreloadError 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 function put_chunk($txt) {
3 echo sprintf("%x\r\n", strlen($txt));
4 echo "$txt\r\n";
5 }
6 header("Content-type: text/html; charset=UTF-8");
7 header("Transfer-encoding: chunked");
8 ob_flush();
9 flush();
10 usleep(10000);
falken 2017/01/18 14:24:59 Can you comment why we need usleep and how you cho
horo 2017/01/18 16:14:57 Done. But I have no specific reason to chose 10,0
11 for ($i = 0; $i < 10; $i++) {
12 put_chunk("$i");
13 ob_flush();
14 flush();
15 usleep(10000);
16 }
17 echo "0\r\n\r\n";
18 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698