Skip to content

Commit 835a188

Browse files
committed
Release the request's reference to the session at the end.
1 parent 40237ac commit 835a188

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/App.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ protected static function findFile(TcpConnection $connection, string $path, stri
746746
protected static function send($connection, $response, $request)
747747
{
748748
Context::destroy();
749+
// Remove the reference of request to session.
750+
unset($request->context['session']);
749751
$keepAlive = $request->header('connection');
750752
if (($keepAlive === null && $request->protocolVersion() === '1.1')
751753
|| $keepAlive === 'keep-alive' || $keepAlive === 'Keep-Alive'

0 commit comments

Comments
 (0)