Commit 662475bd authored by tufengqi's avatar tufengqi

fix swoft http timeout

parent b2edd9c7
...@@ -218,7 +218,7 @@ class SwoftHttpClient extends \Thrift\Transport\TTransport ...@@ -218,7 +218,7 @@ class SwoftHttpClient extends \Thrift\Transport\TTransport
$options['headers'][VERSION_KEY] = VERSION_VALUE_NO_PTEFIX; $options['headers'][VERSION_KEY] = VERSION_VALUE_NO_PTEFIX;
} }
$options['body'] = $this->request_; $options['body'] = $this->request_;
$options['timeout'] = $this->timeout_; $options['timeout'] = $this->timeout_ms / 1000;
$this->request_ = ''; $this->request_ = '';
$this->response_ = self::$handle->request('POST', $this->uri_, $options)->getResult(); $this->response_ = self::$handle->request('POST', $this->uri_, $options)->getResult();
// Connect failed? // Connect failed?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment