Skip to content

How to enable TCP keepalive feature? #383

@thune-xiaobai

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?

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