1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-15 22:15:13 -05:00
curl/tests/data/test1515
Romulo A. Ceccon 1505e4612b 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.
2014-02-06 23:03:34 +01:00

59 lines
847 B
Plaintext

<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>