From 9d7ee9609c4e7e88fbb7f250f7a915255d32aeab Mon Sep 17 00:00:00 2001 From: Zhuk Sergey Date: Wed, 31 Jan 2018 17:58:41 +0300 Subject: [PATCH] Fix using protocol factory to create request parser --- src/Server.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Server.php b/src/Server.php index 9c84bec..0af1e3b 100644 --- a/src/Server.php +++ b/src/Server.php @@ -73,8 +73,7 @@ public function __construct(ServerInterface $socket, LoopInterface $loop, Protoc public function handleConnection(ConnectionInterface $connection) { - $parser = $this->protocol->createResponseParser(); - $parser = new RequestParser(); + $parser = $this->protocol->createRequestParser(); $that = $this; $business = $this->business;