From 5bc079a8eb477a8533f67aca1d26b58bbcfb1c46 Mon Sep 17 00:00:00 2001 From: Robert Lu Date: Wed, 4 Oct 2017 04:28:00 +0800 Subject: [PATCH] add non-block --- lib/php/lib/Thrift/Transport/TSocket.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/php/lib/Thrift/Transport/TSocket.php b/lib/php/lib/Thrift/Transport/TSocket.php index a1872b98bf5..56f9d1a16c3 100644 --- a/lib/php/lib/Thrift/Transport/TSocket.php +++ b/lib/php/lib/Thrift/Transport/TSocket.php @@ -136,6 +136,7 @@ public function __construct($host='localhost', public function setHandle($handle) { $this->handle_ = $handle; + stream_set_blocking($this->handle_, false); } /**