forked from vshabanov/hsdns-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hsdns-cache.cabal
42 lines (38 loc) · 1.28 KB
/
hsdns-cache.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cabal-version: >= 1.6
name: hsdns-cache
version: 1.0.4
copyright: Vladimir Shabanov 2013
author: Vladimir Shabanov <vshabanoff@gmail.com>
maintainer: Vladimir Shabanov <vshabanoff@gmail.com>
homepage: https://github.com/bazqux/hsdns-cache
license: BSD3
category: Network
license-file: LICENSE
build-type: Simple
synopsis: Caching asynchronous DNS resolver.
description:
.
Caching asynchronous DNS resolver built on top of
GNU ADNS <http://www.chiark.greenend.org.uk/~ian/adns/>.
.
* Resolves several IP addresses for one host (if available)
in round-robin fashion.
.
* Throttles number of parallel requests (so DNS resolving continues to work
even under heavy load).
.
* Errors are cached too (for one minute).
.
* Handles CNAMEs (@hsdns@ returns error for them).
.
This cache is tested in a long running web-crawler
(used in <https://bazqux.com>) so it should be safe to use it in real world
applications.
source-repository head
type: git
location: https://github.com/bazqux/hsdns-cache
library
build-depends: base == 4.*, text, unordered-containers, hsdns, network, time, SafeSemaphore
exposed-modules:
ADNS.Cache
ghc-options: -O2