Azure / azure-storage-python

Microsoft Azure Storage Library for Python
https://azure-storage.readthedocs.io
MIT License
338 stars 240 forks source link

[Blob][Fix][ShortRead]Read the Remainder Until We Have Expected Bytes in Total #600

Closed xiafu-msft closed 5 years ago

xiafu-msft commented 5 years ago

Basically, if x bytes are desired, but only y bytes are read, then we should read x-y bytes next time, and keep trying to read the remainder until we have x bytes in total.

codecov-io commented 5 years ago

Codecov Report

Merging #600 into dev will decrease coverage by 0.04%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #600      +/-   ##
==========================================
- Coverage   86.96%   86.92%   -0.05%     
==========================================
  Files          52       52              
  Lines        4903     4903              
  Branches      528      528              
==========================================
- Hits         4264     4262       -2     
- Misses        469      470       +1     
- Partials      170      171       +1
Impacted Files Coverage Δ
...torage-blob/azure/storage/blob/blockblobservice.py 91.09% <100%> (-1.05%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b8016d9...272dda8. Read the comment docs.