cURL / Mailing Lists / curl-library / Single Mail

curl-library

//Re: find a bug when i use libcurl 7.19.7

From: lizhibao <paullee_530_at_sina.com>
Date: Sat, 13 Apr 2013 20:13:32 +0800

ÓÚ 2013-04-13 18:01, Kamil Dudka дµÀ:
> On Saturday, April 13, 2013 17:23:45 lizhibao wrote:
>> 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
> Are you able to communicate properly with that server using a newer version
> of libcurl?
>
> Kamil
>
>

Thanks for your attention.

there is no issue in libcurl 7.30.0.

new library has fixed the socket problem? what cause curl_easy_perform()
function return 55(Failed sending data to the peer) ?

----------------------------------------------------------------------------------------
# curl --version
curl 7.30.0 (x86_64-redhat-linux-gnu) libcurl/7.30.0 OpenSSL/1.0.0
zlib/1.2.3 c-ares/1.9.1 libidn/1.18 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz
-------------------------------------------------------

2013-04-13 19:38:08.662344 start: curl_easy_perform

* About to connect() to 192.168.88.19 port 18877 (#0)
* Trying 192.168.88.19...
* Adding handle: conn: 0x7fe2ec04bd20
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fe2ec04bd20) send_pipe: 1, recv_pipe: 0
* 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

* upload completely sent off: 37 out of 37 bytes
< HTTP/1.1 200 OK

* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1

< Content-Type: application/json;charset=UTF-8

< Content-Length: 451

< Date: Sat, 13 Apr 2013 11:38:08 GMT

<

2013-04-13 19:38:08.681990 task_response.to_string()={ "addTasks": [ {
"taskHost": "http:\/\/192.168.68.83:8080\/awareness", "taskID": "51",
"taskInterval": 5, "taskPort": 80, "taskType": 1 }, { "taskHost":
"http:\/\/192.168.68.83:8080\/awareness", "taskID": "58",
"taskInterval": 5, "taskPort": 80, "taskType": 1 }, { "taskHost":
"http:\/\/www.hugedatazly.com:8080\/awareness", "taskID": "100",
"taskInterval": 5, "taskPort": 80, "taskType": 1 } ], "clientID":
"1040", "delTasks": [ ], "modTasks": [ ], "ret": 0, "taskNum": 3,
"timestamp": "1365853088750" }

* Connection #0 to host 192.168.88.19 left intact
2013-04-13 19:38:08.682187 curl_easy_perform ret:0(No error)

2013-04-13 19:38:08.682194 curl_easy_getinfo(curl,
CURLINFO_RESPONSE_CODE , &retcode) >> retcode:200

... ... ...

2013-04-13 19:39:08.689232 start: curl_easy_perform

* About to connect() to 192.168.88.19 port 18877 (#4)
* Trying 192.168.88.19...
* Adding handle: conn: 0x7fe2ec04a4b0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 4 (0x7fe2ec04a4b0) send_pipe: 1, recv_pipe: 0
* Connected to 192.168.88.19 (192.168.88.19) port 18877 (#4)
> POST /xiaomifeng/task/getTasks HTTP/1.1

Host: 192.168.88.19:18877

Accept: */*

Content-Type: application/json

Content-Length: 37

* upload completely sent off: 37 out of 37 bytes
< HTTP/1.1 200 OK

* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1

< Content-Type: application/json;charset=UTF-8

< Content-Length: 95

< Date: Sat, 13 Apr 2013 11:39:08 GMT

<

* Connection #4 to host 192.168.88.19 left intact

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-13