cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH v2] Add "Happy Eyeballs" for IPv4/IPv6.

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 30 Oct 2013 17:11:55 +0100

On Wednesday 30 October 2013 16:48:02 Björn Stenberg wrote:
> Kamil Dudka wrote:
> > The latest upstream git HEAD (f6c335d6) still breaks the test-suite on my
> > RHEL-6 box. The tests exercising non-listening sockets (19 702 703 704
> > 705) hang consuming 100% CPU and the file tests/log/trace19 consumes
> > several GBs of disk space very quickly. It contains:
> >
> > 16:21:08.288894 == Info: Rebuilt URL to: 127.0.0.1:60000/
> > 16:21:08.289076 == Info: About to connect() to 127.0.0.1 port 60000 (#0)
> > 16:21:08.289099 == Info: Trying 127.0.0.1...
> > 16:21:08.289159 == Info: Adding handle: conn: 0xc4ed30
> > 16:21:08.289163 == Info: Adding handle: send: 0
> > 16:21:08.289166 == Info: Adding handle: recv: 0
> > 16:21:08.289168 == Info: Curl_addHandleToPipeline: length: 1
> > 16:21:08.289172 == Info: - Conn 0 (0xc4ed30) send_pipe: 1, recv_pipe: 0
> > 16:21:08.289514 == Info: Whut?
> > 16:21:08.289521 == Info: Whut?
>
> Ouch. Would you mind changing line lib/connect.c:796 (the "Whut" line) to
> the following and tell me what it says?
>
> infof(data, "Curl_socket_ready() returned 0x%02x\n", result);

Sure. The output follows. Maybe we should commit the change you suggest also
upstream in order to improve the debugging experience of binary releases?

Kamil

=== Start of file trace19
 17:07:40.037517 == Info: Rebuilt URL to: 127.0.0.1:60000/
 17:07:40.037681 == Info: About to connect() to 127.0.0.1 port 60000 (#0)
 17:07:40.037703 == Info: Trying 127.0.0.1...
 17:07:40.037762 == Info: Adding handle: conn: 0x1259d30
 17:07:40.037767 == Info: Adding handle: send: 0
 17:07:40.037770 == Info: Adding handle: recv: 0
 17:07:40.037772 == Info: Curl_addHandleToPipeline: length: 1
 17:07:40.037776 == Info: - Conn 0 (0x1259d30) send_pipe: 1, recv_pipe: 0
 17:07:40.038093 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038100 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038104 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038108 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038111 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038115 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038118 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038122 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038125 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038129 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038132 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038136 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038139 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038143 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038146 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038150 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038153 == Info: Curl_socket_ready() returned 0x04
 17:07:40.038160 == Info: Curl_socket_ready() returned 0x04

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