mirror of
https://github.com/moparisthebest/curl
synced 2024-11-05 09:05:04 -05:00
37201e3c36
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
42 lines
472 B
Plaintext
42 lines
472 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
--interface
|
|
FAILURE
|
|
non-existing host
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
http
|
|
</features>
|
|
<server>
|
|
none
|
|
</server>
|
|
<name>
|
|
HTTP GET with invalid --interface
|
|
</name>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/1084 --interface non-existing-host.haxx.se.
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<errorcode>
|
|
45
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|