Skip to content

Commit

Permalink
Tweak error message for AWS_ERROR_HTTP_RESPONSE_FIRST_BYTE_TIMEOUT (#488
Browse files Browse the repository at this point in the history
)
  • Loading branch information
graebm authored Oct 10, 2024
1 parent 6068653 commit ffa6805
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/h1_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,8 @@ static void s_http_stream_response_first_byte_timeout_task(
: stream->base.client_data->response_first_byte_timeout_ms;
AWS_LOGF_INFO(
AWS_LS_HTTP_CONNECTION,
"id=%p: Closing connection as timeout after request sent to the first byte received happened. "
"response_first_byte_timeout_ms is %" PRIu64 ".",
"id=%p: Closing connection. Timed out waiting for first byte of HTTP response, after sending the full request."
" response_first_byte_timeout_ms=%" PRIu64,
(void *)connection_base,
response_first_byte_timeout_ms);

Expand Down
2 changes: 1 addition & 1 deletion source/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static struct aws_error_info s_errors[] = {
"Manual write failed because manual writes are already completed."),
AWS_DEFINE_ERROR_INFO_HTTP(
AWS_ERROR_HTTP_RESPONSE_FIRST_BYTE_TIMEOUT,
"The server does not begin responding within the configuration after a request is fully sent."),
"Timed out waiting for first byte of HTTP response, after sending the full request."),
AWS_DEFINE_ERROR_INFO_HTTP(
AWS_ERROR_HTTP_CONNECTION_MANAGER_ACQUISITION_TIMEOUT,
"Connection Manager failed to acquire a connection within the defined timeout."),
Expand Down

0 comments on commit ffa6805

Please sign in to comment.