diff options
author | Romulo A. Ceccon <romuloceccon@gmail.com> | 2014-02-03 17:09:33 -0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-02-06 23:03:34 +0100 |
commit | 8d1377282e67c4a3f8fbeaeccb81daa5cc843d71 (patch) | |
tree | f51da630f30d0ba9491a81488e41a3299199c91a /tests/data/test1516 | |
parent | 1505e4612b59507c2f77274300376c61526e670c (diff) |
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.
Diffstat (limited to 'tests/data/test1516')
-rw-r--r-- | tests/data/test1516 | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/data/test1516 b/tests/data/test1516 new file mode 100644 index 000000000..bf2cd1511 --- /dev/null +++ b/tests/data/test1516 @@ -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> |