文档

超时配置

更新时间:
一键部署

老版 SDK 的超时机制为 Request 设置 -> Client 设置 -> 默认,优先级依次降低;默认连接超时为5秒,读超时为10秒:

DefaultAcsClient client = new DefaultAcsClient(profile);
// request超时设置,仅对当前请求有效
$request->connectTimeout(0.01) // Throw an exception when Connection timeout 
        ->timeout(0.01);        // Throw an exception when timeout 

  • 本页导读 (1)
文档反馈