Skip to content

aiohttp.TCPConnector constructor param ttl_dns_cache documentation #3512

Closed
@tmo-trustpilot

Description

@tmo-trustpilot

Long story short

It says the default is both 10 seconds, and forever.

ttl_dns_cache (int) –
expire after some seconds the DNS entries, None means cached forever. By default 10 seconds.

By default DNS entries are cached forever, in some environments the IP addresses related to a specific HOST can change after a specific time. Use this option to keep the DNS cache updated refreshing each entry after N seconds.

Expected behaviour

One answer :)

Where

https://github.com/aio-libs/aiohttp/blob/master/docs/client_reference.rst line 948 (doesn't render fully in the github preview)

Why don't I just fix it

I don't have all the sphynx stuff set up, and it's so small I'm not going to go through all that. Sorry :)

Activity

aio-libs-bot

aio-libs-bot commented on Jan 9, 2019

@aio-libs-bot

GitMate.io thinks the contributor most likely able to help you is @asvetlov.

Possibly related issues are #2224 (aiohttp.TCPConnector()), #120 (Documentation), #2377 (Drop resovle param from TCPConnector), #2478 (Documentation reorganizing ), and #58 (aiohttp.HttpClient).

tmo-trustpilot

tmo-trustpilot commented on Oct 22, 2019

@tmo-trustpilot
Author

Thanks!

added a commit that references this issue on Oct 24, 2020
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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      aiohttp.TCPConnector constructor param ttl_dns_cache documentation · Issue #3512 · aio-libs/aiohttp