aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-08-10 15:28:46 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-08-10 23:16:08 +0200
commit37201e3c36541a1a7f14424860e1f685eaa83e7c (patch)
tree3cd377b72f5cd75d031a9e61b8cedabcb89132be /tests/data
parent06869597c3f5b29e69786c6f51321e6783c45461 (diff)
callbacks: acknowledge progress callback error returns
When the progress callback is called during the TCP connection, an error return would accidentally not abort the operation as intended but would instead be counted as a failure to connect to that particular IP and libcurl would just continue to try the next. I made singleipconnect() and trynextip() return CURLcode properly. Added bonus: it corrected the error code for bad --interface usages, like tested in test 1084 and test 1085. Reported by: Adam Light Bug: http://curl.haxx.se/mail/lib-2010-08/0105.html
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/test10842
-rw-r--r--tests/data/test10852
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/data/test1084 b/tests/data/test1084
index 2bc0183a7..1cfab68dc 100644
--- a/tests/data/test1084
+++ b/tests/data/test1084
@@ -35,7 +35,7 @@ http://%HOSTIP:%HTTPPORT/1084 --interface non-existing-host.haxx.se.
# Verify data after the test has been "shot"
<verify>
<errorcode>
-7
+45
</errorcode>
</verify>
</testcase>
diff --git a/tests/data/test1085 b/tests/data/test1085
index 0cedefe3b..db02e6033 100644
--- a/tests/data/test1085
+++ b/tests/data/test1085
@@ -42,7 +42,7 @@ HTTP-IPv6 GET with invalid --interface
# Verify data after the test has been "shot"
<verify>
<errorcode>
-7
+45
</errorcode>
</verify>
</testcase>