CURLOPT_OPENSOCKETFUNCTION none lib1530 CURLOPT_OPENSOCKETFUNCTION returns bad socket # it should be detected and an error should be reported # 7 == CURLE_COULDNT_CONNECT 7