Skip to content

Commit 1c19750

Browse files
committed
Fix full stream read on the input stream close
1 parent 3609bf7 commit 1c19750

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

s3/src/main/scala/geotrellis/store/s3/util/S3RangeReader.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class S3RangeReader(
5555
val responseStream = client.getObject(request)
5656
val length = responseStream.response.contentLength
5757

58+
responseStream.abort()
5859
responseStream.close()
5960
length
6061
}

0 commit comments

Comments
 (0)