bug description: when i start my app, use curl_easy_perform() to first send a message to server, but always return 55(Failed sending data to the peer), but wireshark capture the http post request message has send to server, the response message from server is already arrived client, and then, secend to send message, return 0(No error), CURLE_OK.
I think libcurl initialization socket have problem. Could you somebody know this problem? http debug print as follow: ---------------------- app start: 2013-04-13 16:28:56.394688 start: curl_easy_perform * About to connect() to 192.168.88.19 port 18877 (#0) * Trying 192.168.88.19... * connected * Connected to 192.168.88.19 (192.168.88.19) port 18877 (#0) > POST /xiaomifeng/task/getTasks HTTP/1.1 Host: 192.168.88.19:18877 Accept: */* Content-Type: application/json Content-Length: 37 * select/poll returned error * Closing connection #0 * Failed sending data to the peer 2013-04-13 16:28:56.410139 curl_easy_perform ret:55(Failed sending data to the peer) 2013-04-13 16:28:56.410156 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE , &retcode) >> retcode:0 2013-04-13 16:29:56.415625 start: curl_easy_perform * About to connect() to 192.168.88.19 port 18877 (#0) * Trying 192.168.88.19... * connected * Connected to 192.168.88.19 (192.168.88.19) port 18877 (#0) > POST /xiaomifeng/task/getTasks HTTP/1.1 Host: 192.168.88.19:18877 Accept: */* Content-Type: application/json Content-Length: 37 < HTTP/1.1 200 OK < Server: Apache-Coyote/1.1 < Content-Type: application/json;charset=UTF-8 < Content-Length: 109 < Date: Sat, 13 Apr 2013 08:29:56 GMT < * Connection #0 to host 192.168.88.19 left intact 2013-04-13 16:29:56.429737 curl_easy_perform ret:0(No error) 2013-04-13 16:29:56.429742 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE , &retcode) >> retcode:200 * Closing connection #0 ------------------------------------------------------------------------------------- library version information: curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2 Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html