mirror of
https://github.com/curl/curl.git
synced 2026-07-24 10:27:21 +03:00
hostip: cache negative name resolves
Hold them for half the normal lifetime. Helps when told to transfer N URLs in quick succession that all use the same non-resolving hostname. Done by storing a DNS entry with a NULL pointer for 'addr'. Previously an attempt was made in #12406 by Björn Stenberg that was ultimately never merged. Closes #18157
This commit is contained in:
parent
06c12cc08b
commit
df2b4ccc22
11 changed files with 155 additions and 19 deletions
|
|
@ -747,3 +747,13 @@ should be cut off from the upload data before comparing it.
|
|||
|
||||
### `<valgrind>`
|
||||
disable - disables the valgrind log check for this test
|
||||
|
||||
### `<dns [host="name"]>`
|
||||
|
||||
This specify the input the DNS server is expected to get from curl. Because of
|
||||
differences in implementations, this section is sorted automatically before
|
||||
compared.
|
||||
|
||||
Because of local configurations in machines running tests, there may be
|
||||
additional requests sent to `[host].[custom suffix]`. To prevent such requests
|
||||
to mess up comparisons, we can set the hostname to check in the `<dns>` tag.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue