mirror of
https://github.com/librespeed/speedtest.git
synced 2026-08-27 03:46:58 +00:00
Data is now incompressible
This commit is contained in:
parent
ec223a45d4
commit
d9c320aee4
3 changed files with 26 additions and 28 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// Disable Compression (would be too easy for 000...)
|
||||
// Disable Compression
|
||||
@ini_set('zlib.output_compression', 'Off');
|
||||
@ini_set('output_buffering', 'Off');
|
||||
@ini_set('output_handler', '');
|
||||
|
|
@ -15,8 +15,8 @@ header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
|
|||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
// Generate data
|
||||
$data=str_repeat("0",1048575)."\n";
|
||||
// Deliver chunks of 1048576 bytes (or more - depending on encoding!)
|
||||
$data=openssl_random_pseudo_bytes(1048576,false);
|
||||
// Deliver chunks of 1048576 bytes
|
||||
while(1){
|
||||
echo $data;
|
||||
flush();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue