Skip to content

Enabling TCP keepalive #1296

@yoshi-taka

Description

@yoshi-taka

Describe the feature

Node.js and Python SDKs allow you to configure TCP keepalive.
It would be great if the Rust SDK also offered an easy way to set it.

Use Case

https://docs.aws.amazon.com/lambda/latest/dg/best-practices.html

Proposed Solution

The default-client uses Hyper, so it’s possible to configure TCP keepalive there.
Legacy 0.14 is also supported.

https://github.com/hyperium/hyper/blob/d77c2599bc023b258b90a17f5b633c8b7b0cbd4b/src/client/conn/http2.rs#L345

https://github.com/hyperium/hyper/blob/72ebcffb7d82cda15aa74507b2cc522ca2a7a94d/tests/client.rs#L3059

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

A note for the community

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions