Lines Matching refs:query
1 # DNS-over-TLS query forwarder design
5 The DNS-over-TLS query forwarder consists of five classes:
12 `DnsTlsDispatcher` is a singleton class whose `query` method is the DnsTls's
15 network. `DnsTlsDispatcher` also blocks each query thread, waiting on a
18 `DnsTlsTransport` sends each query over a `DnsTlsSocket`, opening a
25 `DnsTlsQueryMap` handles ID renumbering and query-response pairing.
31 state to indicate whether there is an outstanding query.
46 query or response. However, DnsProxyListener does create a thread for each query.
52 The query method writes a struct (containing a pointer to the query) to the pipe
55 instead, any queueing happens by blocking the query thread until the
61 up on inputs from the query threads. Therefore, inputs from the query
70 query a new ID for transmission, records the mapping from input IDs to sent IDs, and
73 `DnsTlsQueryMap` assigns each new query the ID number one greater than the largest
74 ID number of an outstanding query. This means that ID numbers are initially sequential
76 `DnsTlsQueryMap` will scan the ID space to find an available ID, or fail the query
87 `DnsTlsQueryMap` imposes a retry limit of 3. `DnsTlsTransport` will retry the query up
94 outstanding queries for 5 minutes will be destroyed at the next query on a different
98 increases latency on the first query after an idle period, but also helps to avoid