Skip to content

Tweak timeouts to be more aggressive on connect, and terminate long connections#48

Open
Peterburnett wants to merge 1 commit intomasterfrom
timeout-tweaks
Open

Tweak timeouts to be more aggressive on connect, and terminate long connections#48
Peterburnett wants to merge 1 commit intomasterfrom
timeout-tweaks

Conversation

@Peterburnett
Copy link
Contributor

@Peterburnett Peterburnett commented Sep 1, 2022

https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.AwsClient.html#_getCommand

See args param here for description of available args

}
if (!array_key_exists('timeout', $opts['http'])) {
// Try not to override existing settings.
$opts['http']['timeout'] = HOURSECS;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good as is, the only thing we could add is check $opts first, then get_config and then finally HOURSECS which gives us some room to tweak this further case by case down the road

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants