Skip to content

Commit fe467f0

Browse files
Close the stream as early as possible
1 parent d541870 commit fe467f0

File tree

1 file changed

+0
-1
lines changed
  • packages/smithy-http/src/smithy_http/aio

1 file changed

+0
-1
lines changed

packages/smithy-http/src/smithy_http/aio/crt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ def read(self, size: int | None = -1) -> bytes:
376376
result = result[:size]
377377
if remainder:
378378
self._chunks.appendleft(remainder)
379-
return result
380379

381380
if self._done and len(self._chunks) == 0:
382381
self.close()

0 commit comments

Comments
 (0)