Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.188.73.229
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-test /
vendor /
react /
stream /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
Stub
[ DIR ]
drwxr-xr-x
2018-07-11 14:38
CallableStub.php
104
B
-rw-r--r--
2018-07-11 14:38
CompositeStreamTest.php
8.21
KB
-rw-r--r--
2018-07-11 14:38
DuplexResourceStreamIntegrationTest.php
10.06
KB
-rw-r--r--
2018-07-11 14:38
DuplexResourceStreamTest.php
14.42
KB
-rw-r--r--
2018-07-11 14:38
EnforceBlockingWrapper.php
656
B
-rw-r--r--
2018-07-11 14:38
FunctionalInternetTest.php
3.4
KB
-rw-r--r--
2018-07-11 14:38
ReadableResourceStreamTest.php
10.8
KB
-rw-r--r--
2018-07-11 14:38
TestCase.php
1.15
KB
-rw-r--r--
2018-07-11 14:38
ThroughStreamTest.php
7.09
KB
-rw-r--r--
2018-07-11 14:38
UtilTest.php
7.89
KB
-rw-r--r--
2018-07-11 14:38
WritableStreamResourceTest.php
16.06
KB
-rw-r--r--
2018-07-11 14:38
Save
Rename
<?php namespace React\Tests\Stream; use React\EventLoop\Factory; use React\EventLoop\LoopInterface; use React\Stream\DuplexResourceStream; use React\Stream\WritableResourceStream; /** * @group internet */ class FunctionalInternetTest extends TestCase { public function testUploadKilobytePlain() { $size = 1000; $stream = stream_socket_client('tcp://httpbin.org:80'); $loop = Factory::create(); $stream = new DuplexResourceStream($stream, $loop); $buffer = ''; $stream->on('data', function ($chunk) use (&$buffer) { $buffer .= $chunk; }); $stream->on('error', $this->expectCallableNever()); $stream->write("POST /post HTTP/1.0\r\nHost: httpbin.org\r\nContent-Length: $size\r\n\r\n" . str_repeat('.', $size)); $this->awaitStreamClose($stream, $loop); $this->assertNotEquals('', $buffer); } public function testUploadBiggerBlockPlain() { $size = 50 * 1000; $stream = stream_socket_client('tcp://httpbin.org:80'); $loop = Factory::create(); $stream = new DuplexResourceStream($stream, $loop); $buffer = ''; $stream->on('data', function ($chunk) use (&$buffer) { $buffer .= $chunk; }); $stream->on('error', $this->expectCallableNever()); $stream->write("POST /post HTTP/1.0\r\nHost: httpbin.org\r\nContent-Length: $size\r\n\r\n" . str_repeat('.', $size)); $this->awaitStreamClose($stream, $loop); $this->assertNotEquals('', $buffer); } public function testUploadKilobyteSecure() { $size = 1000; $stream = stream_socket_client('tls://httpbin.org:443'); $loop = Factory::create(); $stream = new DuplexResourceStream($stream, $loop); $buffer = ''; $stream->on('data', function ($chunk) use (&$buffer) { $buffer .= $chunk; }); $stream->on('error', $this->expectCallableNever()); $stream->write("POST /post HTTP/1.0\r\nHost: httpbin.org\r\nContent-Length: $size\r\n\r\n" . str_repeat('.', $size)); $this->awaitStreamClose($stream, $loop); $this->assertNotEquals('', $buffer); } public function testUploadBiggerBlockSecureRequiresSmallerChunkSize() { $size = 50 * 1000; $stream = stream_socket_client('tls://httpbin.org:443'); $loop = Factory::create(); $stream = new DuplexResourceStream( $stream, $loop, null, new WritableResourceStream($stream, $loop, null, 8192) ); $buffer = ''; $stream->on('data', function ($chunk) use (&$buffer) { $buffer .= $chunk; }); $stream->on('error', $this->expectCallableNever()); $stream->write("POST /post HTTP/1.0\r\nHost: httpbin.org\r\nContent-Length: $size\r\n\r\n" . str_repeat('.', $size)); $this->awaitStreamClose($stream, $loop); $this->assertNotEquals('', $buffer); } private function awaitStreamClose(DuplexResourceStream $stream, LoopInterface $loop, $timeout = 10.0) { $stream->on('close', function () use ($loop) { $loop->stop(); }); $that = $this; $loop->addTimer($timeout, function () use ($loop, $that) { $loop->stop(); $that->fail('Timed out while waiting for stream to close'); }); $loop->run(); } }