Skip to content

Commit 5d04477

Browse files
committed
Tweak error message for AWS_ERROR_HTTP_RESPONSE_FIRST_BYTE_TIMEOUT (#488)
1 parent 0451420 commit 5d04477

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/h1_connection.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,8 +831,8 @@ static void s_http_stream_response_first_byte_timeout_task(
831831
: stream->base.client_data->response_first_byte_timeout_ms;
832832
AWS_LOGF_INFO(
833833
AWS_LS_HTTP_CONNECTION,
834-
"id=%p: Closing connection as timeout after request sent to the first byte received happened. "
835-
"response_first_byte_timeout_ms is %" PRIu64 ".",
834+
"id=%p: Closing connection. Timed out waiting for first byte of HTTP response, after sending the full request."
835+
" response_first_byte_timeout_ms=%" PRIu64,
836836
(void *)connection_base,
837837
response_first_byte_timeout_ms);
838838

source/http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static struct aws_error_info s_errors[] = {
150150
"Manual write failed because manual writes are already completed."),
151151
AWS_DEFINE_ERROR_INFO_HTTP(
152152
AWS_ERROR_HTTP_RESPONSE_FIRST_BYTE_TIMEOUT,
153-
"The server does not begin responding within the configuration after a request is fully sent."),
153+
"Timed out waiting for first byte of HTTP response, after sending the full request."),
154154
AWS_DEFINE_ERROR_INFO_HTTP(
155155
AWS_ERROR_HTTP_CONNECTION_MANAGER_ACQUISITION_TIMEOUT,
156156
"Connection Manager failed to acquire a connection within the defined timeout."),

0 commit comments

Comments
 (0)