HTTP/2 server push, callback?

2015-05-27 Thread Daniel Stenberg
Hi again, We're in feature-freeze mode for this pending release but that will end with a release in three weeks and then we'll be open for new features again. I thought I'd throw some server push ideas in the mean time and see if anyone has ideas or improvements for them! I imagine two new

Connecting to multiple hosts that have the same hostname

2015-05-27 Thread Michael Kaufmann
Hi, I have a challenging scenario for libcurl. I want to connect with https to a cluster of ADFS hosts (Active Directory Federation Services). These hosts have the same hostname, but different IP addresses. For example: - host.example.org, IP: 10.0.0.1 - host.example.org, IP: 10.0.0.2

Re: Question regarding multiple IMAP operations

2015-05-27 Thread Adam
Ray, I've actually written C89 code to parse IMAP responses. libcurl IMAP is indeed garbage, because the only thing it does for you that a straight socket doesn't is encryption (which is well documented w/tons of code samples anyway). So as soon as I remove these crashes I will post my code to

Re: Connecting to multiple hosts that have the same hostname

2015-05-27 Thread Daniel Hardman
Interesting challenge. Can you just use different curl multi handles? --Daniel On Wed, May 27, 2015 at 1:10 PM, Michael Kaufmann m...@michael-kaufmann.ch wrote: Hi, I have a challenging scenario for libcurl. I want to connect with https to a cluster of ADFS hosts (Active Directory

Re: Question regarding multiple IMAP operations

2015-05-27 Thread Daniel Stenberg
On Wed, 27 May 2015, Adam wrote: Ray, I've actually written C89 code to parse IMAP responses. libcurl IMAP is indeed garbage, because the only thing it does for you that a straight socket doesn't is encryption ... and an non-blocking IMAP command/response state machine with a stable API

Re: Connecting to multiple hosts that have the same hostname

2015-05-27 Thread Daniel Stenberg
On Wed, 27 May 2015, Michael Kaufmann wrote: As suggested in many mails on this mailing list, I have tried to solve this using CURLOPT_RESOLVE. I have found two problems: Let me suggeset yet another way with existing functionality: Use the share interface, and tell each easy handle that uses

Re: Connecting to multiple hosts that have the same hostname

2015-05-27 Thread Michael Kaufmann
Interesting challenge. Can you just use different curl multi handles? --Daniel Yes, I think this would work. But tracking more than one multi handle is a difficult task. libcurl is optimized for the add many easy handles to one multi handle approach. Regards, Michael On Wed, May 27,

Re: Connecting to multiple hosts that have the same hostname

2015-05-27 Thread Daniel Stenberg
On Wed, 27 May 2015, Michael Kaufmann wrote: Can you just use different curl multi handles? Yes, I think this would work. But tracking more than one multi handle is a difficult task. libcurl is optimized for the add many easy handles to one multi handle approach. Yes it is. We've been in

Happy eyeballs and custom DNS

2015-05-27 Thread Anders Bakken via curl-library
Hi We're using our own DNS manager and integrate with curl with CURLOPT_RESOLVE. Will Curl do happy eyeballs if both an ipv4 and an ipv6 result is provided? regards -- Anders Bakken - Netflix --- List admin:

Re: Happy eyeballs and custom DNS

2015-05-27 Thread Daniel Stenberg
On Wed, 27 May 2015, Anders Bakken via curl-library wrote: We're using our own DNS manager and integrate with curl with CURLOPT_RESOLVE. Will Curl do happy eyeballs if both an ipv4 and an ipv6 result is provided? No, unfortunately not. It was discussed briefly not long ago, but

Re: Question regarding multiple IMAP operations

2015-05-27 Thread Ray Satiro via curl-library
On 5/26/2015 9:31 AM, Adam wrote: What is the proper way to send multiple IMAP commands? For example, first I'd like to get a listing of all the folder names, then I want to list the unread files in the folder names. I've tried using the same CURL* curl handle, sometimes it crashes on

Re: Question regarding multiple IMAP operations

2015-05-27 Thread Ray Satiro via curl-library
On 5/27/2015 3:09 PM, Adam wrote: Ray, I've actually written C89 code to parse IMAP responses. libcurl IMAP is indeed garbage, because the only thing it does for you that a straight socket doesn't is encryption (which is well documented w/tons of code samples anyway). So as soon as I remove

Re: Happy eyeballs and custom DNS

2015-05-27 Thread Anders Bakken via curl-library
How much work do you think it would be? (and could you point me in the general right direction for it?) Anders On Wed, May 27, 2015 at 2:39 PM, Daniel Stenberg dan...@haxx.se wrote: On Wed, 27 May 2015, Anders Bakken via curl-library wrote: We're using our own DNS manager and integrate with

Re: Happy eyeballs and custom DNS

2015-05-27 Thread Ray Satiro via curl-library
On 5/27/2015 6:51 PM, Anders Bakken via curl-library wrote: How much work do you think it would be? (and could you point me in the general right direction for it?) I worked on it a while ago. Stefan had some changes to add address remove capability that I thought pre-empted mine so his were