diff options
author | Valery Piashchynski <[email protected]> | 2022-05-06 10:39:36 +0200 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2022-05-06 10:39:36 +0200 |
commit | da09c873f8182ed13887deda6aff362a6d47b605 (patch) | |
tree | 921c805edb1041b06b9a0e61a3b5c7d2dc05d52f | |
parent | 20ccdb78a2f402fd8e7d6844605f9cb0b3209798 (diff) |
update CHANGELOG
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r-- | CHANGELOG.md | 50 |
1 files changed, 6 insertions, 44 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c668ecf..6a041c4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,55 +1,17 @@ # CHANGELOG -<details> - <summary>v2.10.0-alpha.1</summary> +## v2.9.3 (06.05.2022) -## v2.10.0-alpha.1 (07.04.2022) - -## ๐ New: +## ๐ฉน Fixes: -- โ๏ธ **[ALPHA]** HTTP response streaming. Available only in the alfa builds. +- ๐ Fix: **AMQP** driver didn't reconnect on timeouts, which led to stopping consuming messages w/o a proper notification. [BUG](https://github.com/roadrunner-server/roadrunner/issues/1103), (thanks @hustlahusky) +- ๐ Fix: `reset` command (`./rr reset`) gets stuck when using output redirects. [BUG](https://github.com/roadrunner-server/roadrunner/issues/1108), (thanks @maximal) -Worker sample: -```php -<?php - -use Nyholm\Psr7\Factory\Psr17Factory; -use Nyholm\Psr7\Response; -use Nyholm\Psr7\Stream; -use Spiral\RoadRunner; - -ini_set('display_errors', 'stderr'); -require __DIR__ . "/vendor/autoload.php"; - -$worker = RoadRunner\Worker::create(); -$psr7 = new RoadRunner\Http\PSR7Worker( - $worker, - new Psr17Factory(), - new Psr17Factory(), - new Psr17Factory() -); - -$psr7->chunk_size = 10 * 10 * 1024; -$filename = 'file.tmp'; // big file or response - -while ($req = $psr7->waitRequest()) { - try { - $fp = \fopen($filename, 'rb'); - \flock($fp, LOCK_SH); - $resp = (new Response())->withBody(Stream::create($fp)); - $psr7->respond($resp); - } catch (\Throwable $e) { - $psr7->getWorker()->error((string)$e); - } - -``` +## ๐งน Chore: -Known issues: -1. RR will not notify a worker if HTTP connection was interrupted. RR will read all response from the worker and drop it. That will be fixed in the stable streaming release. -2. Sometimes RR may miss the immediate error from the worker and send a 0 payload with 200 status. This is related only to the http response. +- ๐๏ธ **HTTP** plugin: better looking error message on wrong status code. [ISSUE](https://github.com/roadrunner-server/roadrunner/issues/1107), (thanks @gam6itko) --- -</details> ## v2.9.2 (28.04.2022) |