diff --git a/zboxcore/sdk/chunked_upload_chunk_reader.go b/zboxcore/sdk/chunked_upload_chunk_reader.go index a54159b3c..308a980b6 100644 --- a/zboxcore/sdk/chunked_upload_chunk_reader.go +++ b/zboxcore/sdk/chunked_upload_chunk_reader.go @@ -237,7 +237,7 @@ func (r *chunkedUploadChunkReader) Next() (*ChunkData, error) { } if CurrentMode == UploadModeHigh { - r.hasherDataChan <- chunkBytes + r.hasherDataChan <- chunkBytes[:readLen] } else { _ = r.hasher.WriteToFile(chunkBytes) } diff --git a/zboxcore/zboxutil/http.go b/zboxcore/zboxutil/http.go index d8a474fe0..6ec61a5c5 100644 --- a/zboxcore/zboxutil/http.go +++ b/zboxcore/zboxutil/http.go @@ -159,10 +159,10 @@ func init() { DisableHeaderNamesNormalizing: true, // If you set the case on your headers correctly you can enable this DisablePathNormalizing: true, // increase DNS cache time to an hour instead of default minute - Dial: (&fasthttp.TCPDialer{ + DialTimeout: (&fasthttp.TCPDialer{ Concurrency: 4096, DNSCacheDuration: time.Hour, - }).Dial, + }).DialTimeout, ReadTimeout: 180 * time.Second, WriteTimeout: 180 * time.Second, MaxConnDuration: 45 * time.Second,