From 2e420d6534bc91f2bcdaf40a46239a8af60502d1 Mon Sep 17 00:00:00 2001 From: lin <465382251@qq.com> Date: Mon, 8 Jul 2019 17:15:54 +0800 Subject: [PATCH] timeout default time 60s --- src/Request.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Request.php b/src/Request.php index 6689c74..e740088 100644 --- a/src/Request.php +++ b/src/Request.php @@ -29,7 +29,7 @@ class Request protected $data=[]; - protected $timeout=10; + protected $timeout=60; protected $proxy=false; @@ -38,6 +38,8 @@ public function __construct(array $data) $this->key=$data['key'] ?? ''; $this->secret=$data['secret'] ?? ''; $this->host=$data['host'] ?? 'https://api.binance.com'; + + $this->timeout=$data['timeout'] ?? 60; } /**