diff options
author | Romulo A. Ceccon <romuloceccon@gmail.com> | 2014-01-31 17:03:13 -0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-02-06 23:03:34 +0100 |
commit | 1505e4612b59507c2f77274300376c61526e670c (patch) | |
tree | d9c9894ed60d22a240f03840b5b1946b8b7b2d62 /tests/data/test1515 | |
parent | b93755df37669195c3a9c0717fc8336db504df04 (diff) |
tests: add test for bug #1303 (dns cache timeout)
Test-case 1515 reproduces bug #1303, where libcurl
would incorrectly prune DNS entries added via
CURLOPT_RESOLVE after the DNS_CACHE_TIMEOUT had
expired.
Diffstat (limited to 'tests/data/test1515')
-rw-r--r-- | tests/data/test1515 | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/data/test1515 b/tests/data/test1515 new file mode 100644 index 000000000..3a49d1be9 --- /dev/null +++ b/tests/data/test1515 @@ -0,0 +1,58 @@ +<testcase> + +<info> +<keywords> +HTTP +multi +FAILURE +resolve +</keywords> +</info> + +<reply> +# Close the connection after the first request. Second request will happen after +# the DNS cache timeout elapses and must succeed exactly like the first one. +<data1> +HTTP/1.1 200 OK +Date: Thu, 03 Feb 2014 17:04:00 GMT +Server: test-server/fake swsclose +Connection: close +Content-Type: text/html +Content-Length: 6 + +hello +</data1> +<data2> +HTTP/1.1 200 OK +Date: Thu, 03 Feb 2014 17:04:02 GMT +Server: test-server/fake swsclose +Connection: close +Content-Type: text/html +Content-Length: 6 + +hello +</data2> +</reply> + +<client> +<server> +http +</server> +<tool> +lib1515 +</tool> +<name> +caching of manual libcurl DNS entries after DNS cache timeout +</name> +<command> +/path/1515 %HOSTIP %HTTPPORT +</command> +</client> + +<verify> +<errorcode> +0 +</errorcode> +</verify> + +</testcase> |