From 1505e4612b59507c2f77274300376c61526e670c Mon Sep 17 00:00:00 2001 From: "Romulo A. Ceccon" Date: Fri, 31 Jan 2014 17:03:13 -0200 Subject: 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. --- tests/data/test1515 | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 tests/data/test1515 (limited to 'tests/data/test1515') 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 @@ + + + + +HTTP +multi +FAILURE +resolve + + + + +# 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. + +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 + + +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 + + + + + +http + + +lib1515 + + +caching of manual libcurl DNS entries after DNS cache timeout + + +/path/1515 %HOSTIP %HTTPPORT + + + + + +0 + + + + -- cgit v1.2.3