Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hostcache: Cache negative name resolves #12406

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 22, 2023

  1. hostip: Cache negative name resolves

    TODO 1.9: Add failed name resolves to the host cache, so that repeated
    connection attempts do not immediately repeat the resolve request. Lifetime
    of negative entries is set to half of the positive ones.
    
    Refactor the hostip api so that Curl_resolv_check() also checks the cache,
    removing the need for Curl_fetch_addr(). This way hostip callers only need
    one function, and don't care if the result came from cache or not.
    zagor committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    2f0ce53 View commit details
    Browse the repository at this point in the history