Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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