Skip to content

How to enable TCP keepalive feature? #383

Description

@thune-xiaobai

In urllib3 docs, there're ways to add tcp keepalive options to HTTPConnection

HTTPConnection.default_socket_options + [
    (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
]

but on httpx or httpcore, I didn't find the way to do same thing, any solutions if I want to enable tcp keepalive?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions