Skip to content

Commit af29c15

Browse files
authored
Fix bug where last few bytes on socket go unread (#567)
**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: awslabs/aws-c-io#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 ```
1 parent 23efdd7 commit af29c15

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

crt/aws-c-http

crt/aws-c-s3

Submodule aws-c-s3 updated 57 files

crt/s2n

Submodule s2n updated from 171c96a to 6d92b46

test/test_http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _start_server(self, secure, http_1_0=False):
5757

5858
self.server = HTTPServer((self.hostname, 0), TestRequestHandler)
5959
if secure:
60-
context = ssl.SSLContext()
60+
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
6161
context.load_cert_chain(certfile='test/resources/unittest.crt', keyfile="test/resources/unittest.key")
6262
self.server.socket = context.wrap_socket(self.server.socket, server_side=True)
6363
self.port = self.server.server_address[1]

0 commit comments

Comments
 (0)