awslabs / aws-crt-python

Python bindings for the AWS Common Runtime
Apache License 2.0
87 stars 43 forks source link

Fix bug where last few bytes on socket go unread #567

Closed graebm closed 4 months ago

graebm commented 4 months ago

Issue:

awscrt.s3.S3Client is occasionally seeing errors when the server sends an HTTP response with a Connection: close header (meaning it intends to close the connection after the response is sent). The server is sending the full response, then immediately hanging up. But the last few bytes of the response never make it to the HTTP client.

Description of changes:

Update submodules, bringing in this fix: https://github.com/awslabs/aws-c-io/pull/642

aws-c-auth         v0.7.17 -> v0.7.22
aws-c-cal          v0.6.11 -> v0.6.15
aws-c-common       v0.9.15 -> v0.9.20
aws-c-http         v0.8.1 -> v0.8.2
aws-c-io           v0.14.7 -> v0.14.9
aws-c-mqtt         v0.10.3 -> v0.10.4
aws-c-s3           v0.5.7 -> v0.5.10
aws-c-sdkutils     v0.1.15 -> v0.1.16
s2n                v1.4.11 -> v1.4.15

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.