diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 2548dc0..96144ba 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -5,7 +5,8 @@ xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd" bootstrap="vendor/autoload.php" cacheResult="false" - colors="true"> + colors="true" + convertDeprecationsToExceptions="true"> ./tests/ @@ -16,4 +17,7 @@ ./src/ + + + diff --git a/phpunit.xml.legacy b/phpunit.xml.legacy index e922482..109458b 100644 --- a/phpunit.xml.legacy +++ b/phpunit.xml.legacy @@ -15,4 +15,7 @@ ./src/ + + + diff --git a/src/Server.php b/src/Server.php index ca45015..2d89139 100644 --- a/src/Server.php +++ b/src/Server.php @@ -387,9 +387,6 @@ public function connectTarget(ConnectionInterface $stream, array $target) $that->endConnection($remote); }); - // set bigger buffer size of 100k to improve performance - $stream->bufferSize = $remote->bufferSize = 100 * 1024 * 1024; - return $remote; }, function(Exception $error) { // default to general/unknown error