qjfoidnh / BaiduPCS-Go

iikira/BaiduPCS-Go原版基础上集成了分享链接/秒传链接转存功能
Apache License 2.0
3k stars 453 forks source link

对于--nosplit的Timeout过小 #268

Open yayo opened 1 year ago

yayo commented 1 year ago

上传如果指定"--nosplit"则 nosplit_timeout = split_timeout * N_slice 这里写死为"200"秒造成例如在500KByte/s的线路上传140MByte永远无法完成 改为大约50000(=2GByte/50KByte/s)秒上传2GByte测试通过

--- internal/pcsfunctions/pcsupload/upload.go +++ internal/pcsfunctions/pcsupload/upload.go @@ -60,7 +60,7 @@ func (pu PCSUpload) TmpFile(ctx context.Context, partseq int, partOffset int64, checksum, pcsError := pu.pcs.UploadTmpFile(func(uploadURL string, jar http.CookieJar) (resp http.Response, err error) { //client := pcsconfig.Config.PCSHTTPClient() client.SetCookiejar(jar)