cURL / Mailing Lists / curl-library / Single Mail

curl-library

error message during transfer in muti_socket interface

From: smruti kumari <smrutikumari777_at_gmail.com>
Date: Wed, 20 Jul 2016 10:28:00 +0530

Hi Daniel,

I have enable the debug mode in curl library and vesbose message in easy
handle.I am receiving the data using write callback. I am removing the
socket fd from event manager once I get CURL_POLL_REMOVE using socket
callback. I observed that some error message printing by the curl duing
transfer. I am getting below message
in console:

* STATE: INIT => CONNECT handle 0x1221a28; line 1402 (connection #-5000)
* Added connection 0. The cache now contains 1 members
* Trying 192.168.1.120...
* STATE: CONNECT => WAITCONNECT handle 0x1221a28; line 1455 (connection #0)
socketCallback: adding fd=5 action=2
* Connected to 192.168.1.120 (192.168.1.120) port 80 (#0)
* STATE: WAITCONNECT => SENDPROTOCONNECT handle 0x1221a28; line 1562
(connection #0)
* Marked for [keep alive]: HTTP default
* STATE: SENDPROTOCONNECT => DO handle 0x1221a28; line 1580 (connection #0)
> GET /user/login/ HTTP/1.1
Host: 192.168.1.120
Accept: */*

* STATE: DO => DO_DONE handle 0x1221a28; line 1659 (connection #0)
* STATE: DO_DONE => WAITPERFORM handle 0x1221a28; line 1786 (connection #0)
* STATE: WAITPERFORM => PERFORM handle 0x1221a28; line 1796 (connection #0)
socketCallback: adding fd=5 action=1
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Date: Wed, 20 Jul 2016 03:52:51 GMT
* Server Apache/2.4.7 (Ubuntu) is not blacklisted
< Server: Apache/2.4.7 (Ubuntu)
< X-Powered-By: PHP/5.5.9-1ubuntu4.14
< X-Drupal-Cache: HIT
< Etag: "1468937422-0"
< Content-Language: en
< X-Generator: Drupal 7 (http://drupal.org)
< Cache-Control: public, max-age=86400
< Last-Modified: Tue, 19 Jul 2016 14:10:22 GMT
< Expires: Sun, 19 Nov 1978 05:00:00 GMT
< Vary: Cookie,Accept-Encoding
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=utf-8
<

** Failed writing body (0 != 988)* Failed writing data* Marked for
[closure]: Transfer returned error*
* multi_done
* Closing connection 0
* The cache now contains 0 members
>>> socketCallback: removing fd=5 action=4

Could you please inform me why it is aborting the transfer ?

Best regards,
Smruti

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-07-20