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

2013-10-27 Thread Björn Stenberg
Rebased and merged against HEAD. -- Björn From e04f4feef2a9216c8c8cbd1ea67ff6fd1929d291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= bj...@haxx.se Date: Sat, 26 Oct 2013 14:17:33 +0200 Subject: [PATCH] Add Happy Eyeballs for IPv4/IPv6. This patch invokes two socket

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

2013-10-27 Thread Daniel Stenberg
On Sun, 27 Oct 2013, Björn Stenberg wrote: Rebased and merged against HEAD. Thanks, but now I get a compile error: ftp.c: In function 'ftp_state_pasv_resp': ftp.c:2064:28: error: 'conninfo' undeclared (first use in this function) ftp_pasv_verbose(conn, conninfo, ftpc-newhost,

Re: Program using libcurl

2013-10-27 Thread Daniel Stenberg
On Fri, 25 Oct 2013, Gisle Vanem wrote: Something to add to http://curl.haxx.se/libcurl/using/apps.html Thanks, added! -- / daniel.haxx.se --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette:

[PATCH v3] Add Happy Eyeballs for IPv4/IPv6.

2013-10-27 Thread Björn Stenberg
Daniel Stenberg wrote: On Sun, 27 Oct 2013, Björn Stenberg wrote: Rebased and merged against HEAD. Thanks, but now I get a compile error: Argh, git/brain interface malfuntion. Here it is with the fix actually committed. -- Björn From 4cf69b9fa1275d1b507058e8fc7704004cc468e3 Mon Sep 17

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

2013-10-27 Thread Daniel Stenberg
On Sun, 27 Oct 2013, Björn Stenberg wrote: Here it is with the fix actually committed. Lovely. I've merged this and pushed on master now. Thanks! As of commit 7d7df83198, libcurl is using the Happy Eyeballs approach on dual stack clients. -- /

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

2013-10-27 Thread Björn Stenberg
Daniel Stenberg wrote: Lovely. I've merged this and pushed on master now. Thanks! Awesome! I found a mistake. In a special case it will only try the first address in a family. Here is the fix. -- Björn From fad9d25e789398dcdb12ff1d281134d3c9fdf65d Mon Sep 17 00:00:00 2001 From:

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

2013-10-27 Thread Daniel Stenberg
On Sun, 27 Oct 2013, Björn Stenberg wrote: I found a mistake. In a special case it will only try the first address in a family. Here is the fix. Thanks, pushed! -- / daniel.haxx.se--- List admin:

Re: CURLINFO_GNUTLS_SESSION (was Re: Patch: Support CURLINFO_CERTINFO with GnuTLS)

2013-10-27 Thread Daniel Stenberg
On Thu, 24 Oct 2013, Christian Grothoff wrote: struct curl_tlsinfo tlsinfo; union { struct curl_tlsinfo *tlsinfo; struct curl_slist *to_slist; } gptr; memset (tlsinfo, 0, sizeof (tlsinfo)); gptr.tlsinfo = tlsinfo; curl_easy_getinfo (curl,

Re: Linking to libcurl suppresses output in emacs shell on windows

2013-10-27 Thread Daniel Stenberg
On Sat, 26 Oct 2013, K. Frank wrote: the output from the program no longer shows up in the emacs shell. Isn't this rather a question to emacs people? How can a program output something that doesn't get shown in the emacs shell? libcurl certainly doesn't do anything magic, as if you're

Re: Question about some platform updates to Windows

2013-10-27 Thread Daniel Stenberg
On Thu, 24 Oct 2013, Myria wrote: I'd like to fix up the curl library to support building curl/libcurl for ... I'm just thinking of the ways the Windows support could be modernized. =^-^= I'm sure there are lots of people here that will appreciate all the improvements you can throw at

RE: Facing issue while fetching large amount of file list using curl.

2013-10-27 Thread Daniel Stenberg
On Wed, 23 Oct 2013, Heet Kansagra - Quipment India wrote: libcurl V7.24.0 libssh2 V1.4.0 Right, so we have indeed fixed SFTP-related problems since then so it would make sense if you at least first checked that the bugs are still present! -- / daniel.haxx.se

Re: Adding SFTP support to Windows on version 7.21.3

2013-10-27 Thread Stas Oskin
Thanks for quick reply. Due to legacy reasons we are locked to version 7.21.3, and I need to enable SFTP support there. You can, although you will of course also get your share of SFTP related bugs we had back then. What involves migrating to latest version, any serious caveats? I

Re: Linking to libcurl suppresses output in emacs shell on windows

2013-10-27 Thread K. Frank
Hi Daniel! On Sun, Oct 27, 2013 at 1:41 PM, Daniel Stenberg dan...@haxx.se wrote: On Sat, 26 Oct 2013, K. Frank wrote: the output from the program no longer shows up in the emacs shell. Isn't this rather a question to emacs people? Yes. I will take the liberty of cross-posting my original

Re: Adding SFTP support to Windows on version 7.21.3

2013-10-27 Thread Daniel Stenberg
On Sun, 27 Oct 2013, Stas Oskin wrote: What involves migrating to latest version, any serious caveats? From 7.21.3 I don't think there's anything particular to consider, no. You didn't tell us how you build libcurl! Via Custom step running CMake, the using ClCompile to compile. I

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

2013-10-27 Thread Paul Marks
As an Internet Lorax, I beg you to reconsider this algorithm. Pretend that it's a few years in the future, and most ISPs are using Carrier Grade NAT for IPv4 access. We need to ensure that IPv6 remains a practical alternative to building more NAT capacity, and that requires cooperation from the

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

2013-10-27 Thread Daniel Stenberg
On Sun, 27 Oct 2013, Paul Marks wrote: As an Internet Lorax, I beg you to reconsider this algorithm. I think you're thinking about this a slightly wrong way. It is not reconsidering the algorithm that we need, it is polishing and improving the algorithm. We welcome all contributions that

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

2013-10-27 Thread Daniel Stenberg
On Sun, 27 Oct 2013, Paul Marks wrote: - After 300ms, connect to an address of the opposite family. BTW, I found this IETF-87 presentation[1] which claims various implementations use(d) these timer values: - [RFC 6555] recommends 150-250ms. - Google Chrome uses 300ms. - Firefox uses 250ms.

Re: Question about some platform updates to Windows

2013-10-27 Thread Myria
From: Daniel Stenberg On Thu, 24 Oct 2013, Myria wrote: I'm just thinking of the ways the Windows support could be modernized. =^-^= ... I'd like to fix up the curl library to support building curl/libcurl for Just keep in mind that there are multiple windows (build) environments and

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

2013-10-27 Thread Paul Marks
On Sun, Oct 27, 2013 at 12:53 PM, Daniel Stenberg dan...@haxx.se wrote: On Sun, 27 Oct 2013, Paul Marks wrote: As an Internet Lorax, I beg you to reconsider this algorithm. I think you're thinking about this a slightly wrong way. It is not reconsidering the algorithm that we need, it is