Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/aws/flb_aws_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#define AWS_USER_AGENT_K8S "k8s"
#define AWS_ECS_METADATA_URI "ECS_CONTAINER_METADATA_URI_V4"
#define FLB_MAX_AWS_RESP_BUFFER_SIZE 0 /* 0 means unlimited capacity as per requirement */
#define FLB_MAX_AWS_RESP_TIMEOUT 10 /* 10 seconds */

#ifdef FLB_SYSTEM_WINDOWS
#define FLB_AWS_BASE_USER_AGENT "aws-fluent-bit-plugin-windows"
Expand Down Expand Up @@ -386,6 +387,9 @@ struct flb_http_client *request_do(struct flb_aws_client *aws_client,
goto error;
}

/* Set a HTTP response timeout */
flb_http_set_response_timeout(c, FLB_MAX_AWS_RESP_TIMEOUT);

/* Increase the maximum HTTP response buffer size to fit large responses from AWS services */
ret = flb_http_buffer_size(c, FLB_MAX_AWS_RESP_BUFFER_SIZE);
if (ret != 0) {
Expand Down
Loading