Skip to content

Commit

Permalink
fix:keep_alive造成子协程未能如期退出
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Sep 3, 2021
1 parent c1307c3 commit 8118fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/concerns/InteractsWithHttp.php
Expand Up @@ -75,7 +75,7 @@ protected function prepareHttp()
*/
public function onRequest($req, $res)
{
$this->runInSandbox(function (Http $http, Event $event, App $app) use ($req, $res) {
$this->runWithBarrier([$this, 'runInSandbox'], function (Http $http, Event $event, App $app) use ($req, $res) {
$app->setInConsole(false);

$request = $this->prepareRequest($req);
Expand Down

0 comments on commit 8118fc0

Please sign in to comment.