1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00
curl/tests/data/test1085
Daniel Stenberg 37201e3c36 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
2010-08-10 23:16:08 +02:00

49 lines
697 B
Plaintext

<testcase>
<info>
<keywords>
HTTP
HTTP GET
--interface
IPv6
FAILURE
non-existing host
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<features>
http
ipv6
</features>
<server>
none
</server>
<name>
HTTP-IPv6 GET with invalid --interface
</name>
<command>
-g "http://%HOST6IP:%HTTP6PORT/1085" --interface non-existing-host.haxx.se.
</command>
# Ensure the IPv6 stack is operational before running this test (other tests
# use the startup of the IPv6 test server as a substitute check for this).
<precheck>
./server/resolve --ipv6 ::1
</precheck>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
45
</errorcode>
</verify>
</testcase>