Skip to content

Commit bebc58a

Browse files
DanielBauman88jdisantiZelda Hessler
authored
fix: small comment update (#2304)
The comment talked about the server hanging up while the response was being read. The server hanging up while the response is read should not be a problem. The client will still read whatever the server has sent before getting to the fin/rst that closes the connection. This error should only (I think) happen if the server hangs up before sending a complete response or if the server sends an invalid response. Co-authored-by: John DiSanti <jdisanti@amazon.com> Co-authored-by: Zelda Hessler <zhessler@amazon.com>
1 parent de97b3d commit bebc58a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust-runtime/aws-smithy-http/src/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ pub enum SdkError<E, R = operation::Response> {
334334
DispatchFailure(DispatchFailure),
335335

336336
/// A response was received but it was not parseable according the the protocol (for example
337-
/// the server hung up while the body was being read)
337+
/// the server hung up without sending a complete response)
338338
ResponseError(ResponseError<R>),
339339

340340
/// An error response was received from the service

0 commit comments

Comments
 (0)