From 3a80c2b10f199ccf4ba2223901580c6793c73e8f Mon Sep 17 00:00:00 2001 From: Andrey Kolobov Date: Thu, 14 Apr 2016 19:00:39 +0500 Subject: [PATCH] set dataTimeout --- Connection.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Connection.php b/Connection.php index 88343abf7..04375e868 100644 --- a/Connection.php +++ b/Connection.php @@ -273,6 +273,9 @@ public function open() } if ($connected) { + if ($this->dataTimeout !== null) { + $this->_client->setOption(\Redis::OPT_READ_TIMEOUT, (int)$this->dataTimeout); + } if ($this->password !== null) { $this->executeCommand('AUTH', [$this->password]); }