mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 19:45:04 -05:00
20ac345806
When CURL_SOCKET_BAD is returned in the callback, it should be treated as an error (CURLE_COULDNT_CONNECT) if no other socket is subsequently created when trying to connect to a server. Bug: http://curl.haxx.se/mail/lib-2015-06/0047.html
28 lines
350 B
Plaintext
28 lines
350 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
CURLOPT_OPENSOCKETFUNCTION
|
|
</keywords>
|
|
</info>
|
|
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<tool>
|
|
lib1530
|
|
</tool>
|
|
<name>
|
|
CURLOPT_OPENSOCKETFUNCTION returns bad socket
|
|
</name>
|
|
</client>
|
|
|
|
# it should be detected and an error should be reported
|
|
<verify>
|
|
# 7 == CURLE_COULDNT_CONNECT
|
|
<errorcode>
|
|
7
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|