修改网络请求超时设置

Signed-off-by: zgf <zenggaofeng2@h-partners.com>
This commit is contained in:
zgf 2024-09-05 18:04:21 +08:00
parent 483803a302
commit dcdc17f51f
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
- 增加降采样 - 增加降采样
- file格式图片fd同步close - file格式图片fd同步close
- 解码pixelMap默认不可编辑图形变化可编辑 - 解码pixelMap默认不可编辑图形变化可编辑
- 修改网络请求超时设置
## 3.1.0-rc.2 ## 3.1.0-rc.2
- 修复宽高不等svg图片显示有毛边 - 修复宽高不等svg图片显示有毛边

View File

@ -479,8 +479,8 @@ async function requestJob(request: RequestJobRequest, requestList?: List<ImageKn
header: headerObj, header: headerObj,
method: http.RequestMethod.GET, method: http.RequestMethod.GET,
expectDataType: http.HttpDataType.ARRAY_BUFFER, expectDataType: http.HttpDataType.ARRAY_BUFFER,
connectTimeout: 6000, connectTimeout: 60000,
readTimeout: 6000, readTimeout: 0,
// usingProtocol:http.HttpProtocol.HTTP1_1 // usingProtocol:http.HttpProtocol.HTTP1_1
// header: new Header('application/json') // header: new Header('application/json')
}); });