Skip to content

Commit 02e3e20

Browse files
committed
Add changelog and use default buffer size
1 parent 96f7dae commit 02e3e20

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "breaking",
3+
"description": "Update `AWSCRTHTTPClient` to integrate with the new AWS CRT async interfaces. ([#573](https://github.com/smithy-lang/smithy-python/pull/573))"
4+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ async def _create_body_generator(
307307
):
308308
# AsyncByteStream has async read method but is not iterable
309309
while True:
310-
chunk = await body.read(65536) # Read in 64KB chunks
310+
chunk = await body.read()
311311
if not chunk:
312312
break
313313
if isinstance(chunk, bytearray):

0 commit comments

Comments
 (0)