botocore icon indicating copy to clipboard operation
botocore copied to clipboard

Enable setting tcp_keepalive and duration_seconds via botocore.config.Config object

Open eyager1 opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. Network connection parameters tcp_keepalive and duration_seconds are only settable via ~/.aws/config file and not the botocore.config.Config object. Projects like home-assistant can only configure boto3 via the python API and not any configuration files.

Describe the solution you'd like Expand tcp_keepalive and duration_seconds parameters to be settable via botocore.config.Config.

eyager1 avatar Dec 13 '20 19:12 eyager1

@eyager1 - Thank you for your post. Marking it as a feature request.

swetashre avatar Dec 14 '20 22:12 swetashre

I wondered how is it possible that it can't be set programmatically but in a global config file!

sebtrack avatar Jan 14 '22 10:01 sebtrack

I hope tcp_keepalive = True programmatically too !

yuji-hatakeyama avatar Jul 28 '22 10:07 yuji-hatakeyama

I also hope tcp_keepalive = True programmatically too

frederick-wang avatar Aug 08 '22 05:08 frederick-wang

Hi, is there any update on this? Thanks.

macsir avatar Sep 21 '22 11:09 macsir

@macsir I've opened a PR that adds tcp_keepalive. We've decided not to do the same for duration_seconds. If you wish to see that added as well please comment here and/or open up a new ticket.

dlm6693 avatar Sep 26 '22 15:09 dlm6693

Hi, @dlm6693 Thanks for that. Yes, tcp_keepalive is the one I need.

macsir avatar Sep 26 '22 21:09 macsir

Hi all. tcp_keepalive is now accessible on the config object thanks to https://github.com/boto/botocore/pull/2766. If you would like to see duration_seconds added as well, please open up a new ticket.

dlm6693 avatar Sep 29 '22 23:09 dlm6693