arcadia-devtools b4cb34dfb2 intermediate changes 3 years ago
..
ut 6a1e535429 Restoring authorship annotation for <vmordovin@yandex-team.ru>. Commit 2 of 2. 3 years ago
CMakeLists.txt b4cb34dfb2 intermediate changes 3 years ago
README.md 984590e9d9 Restoring authorship annotation for <and42@yandex-team.ru>. Commit 2 of 2. 3 years ago
cache.cpp 6a1e535429 Restoring authorship annotation for <vmordovin@yandex-team.ru>. Commit 2 of 2. 3 years ago
cache.h 984590e9d9 Restoring authorship annotation for <and42@yandex-team.ru>. Commit 2 of 2. 3 years ago
magic.cpp 984590e9d9 Restoring authorship annotation for <and42@yandex-team.ru>. Commit 2 of 2. 3 years ago
magic.h 984590e9d9 Restoring authorship annotation for <and42@yandex-team.ru>. Commit 2 of 2. 3 years ago
thread.cpp 6a1e535429 Restoring authorship annotation for <vmordovin@yandex-team.ru>. Commit 2 of 2. 3 years ago
thread.h 984590e9d9 Restoring authorship annotation for <and42@yandex-team.ru>. Commit 2 of 2. 3 years ago
ya.make 984590e9d9 Restoring authorship annotation for <and42@yandex-team.ru>. Commit 2 of 2. 3 years ago

README.md

Overview

Библиотека кеширующего resolving-а - изначально писалась для имплементации neh http протокола, использующей корутины. Для предотвращения пробоя короткого стека корутин есть метод, предусматривающий вынос в отдельный тред собственно вызов функции резолвинга. Для предотвращения обращения к DNS серверам (использования вместо этого заранее заданных ip-адресов), предусмотрена ручка добавления alias-ов hosname -> ip-address (требование от метапоискового движка).

Из-за того, что библиотка разрабатывалась под задачу максимально быстрого резолвинга добавлены слои кеширования результатов resoving-а, - возможности сбросить кеш для того, чтобы получить более свежие адреса для указанного host-а нет.