yuanzhihai / easyhttp

轻量级、语义化、对IDE友好的HTTP客户端
MIT License
37 stars 3 forks source link

timeout超时问题 #7

Closed 811174989 closed 1 year ago

811174989 commented 1 year ago

https://github.com/yzh52521/easyhttp/blob/8d7bff10bb8227ac58d1b7f196ac5cf6a9d68ba7/src/Request.php#L270C7-L270C7

$this->options['timeout'] = $seconds * 1000; 改成 $this->options['timeout'] = $seconds; 就能捕获到超时异常错误了