summaryrefslogtreecommitdiff
path: root/Remote/S3.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-11-03 20:36:11 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-11-03 20:36:11 -0400
commit86298d7dac35c4b74aa5bd8ae0b8432caaf3f582 (patch)
tree127e2f596ec77c69b9e578dab305151921963a1d /Remote/S3.hs
parentc973711ffb463d69ac6cdce599832d482986d1da (diff)
switch from hGetSome to hGet
This should be essentially no-op change for hGetContentsMetered, since it always gets the entire contents. So the only difference is that each chunk of the lazy bytestring will always be the full chunk size. So, I'm pretty sure this is safe. Also, the only current users of hGetContentsMetered are reading files, so the stream won't block for long in the middle. The improvement is that hGetUntilMetered will always get some multiple of the defaultChunkSize. This will allow the S3 multipart code to pick a fixed size and know that hGetUntilMetered will really get that size.
Diffstat (limited to 'Remote/S3.hs')
0 files changed, 0 insertions, 0 deletions