mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
tests: add test for bug #1327 (dns cache timeout)
Fix for bug #1303 (030a2b8cb
) was not complete.
libcurl still pruned DNS entries added manually
after detecting a dead connection. This test
checks such behavior.
This commit is contained in:
parent
1505e4612b
commit
8d1377282e
@ -124,6 +124,7 @@ test1416 test1417 \
|
|||||||
\
|
\
|
||||||
test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \
|
test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \
|
||||||
test1508 test1509 test1510 test1511 test1512 test1513 test1514 test1515 \
|
test1508 test1509 test1510 test1511 test1512 test1513 test1514 test1515 \
|
||||||
|
test1516 \
|
||||||
\
|
\
|
||||||
test1900 test1901 test1902 test1903 \
|
test1900 test1901 test1902 test1903 \
|
||||||
\
|
\
|
||||||
|
58
tests/data/test1516
Normal file
58
tests/data/test1516
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
<testcase>
|
||||||
|
|
||||||
|
<info>
|
||||||
|
<keywords>
|
||||||
|
HTTP
|
||||||
|
multi
|
||||||
|
FAILURE
|
||||||
|
resolve
|
||||||
|
</keywords>
|
||||||
|
</info>
|
||||||
|
|
||||||
|
<reply>
|
||||||
|
# Close the connection after the first request but don't tell the client to do
|
||||||
|
# so! When starting the second request it'll detect a dead connection and must
|
||||||
|
# not clean the DNS entries added manually.
|
||||||
|
<data1>
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
Date: Thu, 03 Feb 2014 17:04:00 GMT
|
||||||
|
Server: test-server/fake swsclose
|
||||||
|
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 dead connection
|
||||||
|
</name>
|
||||||
|
<command>
|
||||||
|
/path/1516 %HOSTIP %HTTPPORT
|
||||||
|
</command>
|
||||||
|
</client>
|
||||||
|
|
||||||
|
<verify>
|
||||||
|
<errorcode>
|
||||||
|
0
|
||||||
|
</errorcode>
|
||||||
|
</verify>
|
||||||
|
|
||||||
|
</testcase>
|
Loading…
Reference in New Issue
Block a user