Problems switching from IPv4 to IPv6 on same URL

2016-08-09 Thread Inca R
Hi; This is the problem description: We send a request to http://myserver.mydomain.com while on an IPv4 address. After we get the response we send a new request to the same url https://myserver.mydomain.com but this time on an IPv6 address. cURL resolves the URL as an IPv6 address but it tries to

curl/nghttp2 send multiple TCP packets for Magic/Settings/Headers

2016-03-12 Thread Inca R
Hi;( h2c ) I'm testing my implementation of using Curl with http2 in direct clear TCP without going through HTTP/1.1 Upgrade, I observe in wireshark 3 different packets for Magic, Settings and Headers. Those can easily be sent in one TCP packet to save the roundtrips. Testing the same with h2load

Re: Direct HTTP/2 on clear TCP ( h2c )

2016-03-11 Thread Inca R
<dan...@haxx.se> wrote: > On Thu, 10 Mar 2016, Inca R wrote: > > I'm browsing the code to see where can I implement the direct http/2. >> I found in http.c around line 1794 that the code calls ( under the case >> CURL_HTTP_VERSION_2 ): >> Curl_http2_init >

Re: Direct HTTP/2 on clear TCP ( h2c )

2016-03-10 Thread Inca R
. Is this a correct flow ? Do we need to call init before setup ? Thanks On Mon, Mar 7, 2016 at 3:13 PM, Daniel Stenberg <dan...@haxx.se> wrote: > On Mon, 7 Mar 2016, Inca R wrote: > > > Possibly we introduce an option that makes libcurl use HTTP/2 at once >> over > ht

Direct HTTP/2 on clear TCP ( h2c )

2016-03-07 Thread Inca R
Hi; This is from: https://curl.haxx.se/docs/http2.html " ... Possibly we introduce an option that makes libcurl use HTTP/2 at once over http:// " Is the "option" ready yet ? We have http/2 already implemented using nghttp2 to proxy between http/1.1 and http/2. nghttp2 supports http/1.1 upgrade

Re: cUrl and TFO

2015-12-17 Thread Inca R
it in upstream. I have attached the patch for it. If you prefer a pull request on github I can do that as well. Thanks, Peeyush Aggarwal On Thu, Nov 26, 2015 at 8:03 AM, Daniel Stenberg <dan...@haxx.se> wrote: > On Wed, 25 Nov 2015, Inca R wrote: > > I add to the

Re: cUrl and TFO

2015-12-17 Thread Inca R
Thanks; We will address the points you marked. We tested only on Linux. We can also test iOS and Android. Thanks -- Inca On Thu, Dec 17, 2015 at 9:21 AM, Daniel Stenberg <dan...@haxx.se> wrote: > On Thu, 17 Dec 2015, Inca R wrote: > > I have been working on curl tfo support and

Notification about open/close socket

2015-12-03 Thread Inca R
HI; We are trying to run some statistics and comapre our application socket use with http/2 and http1.1 I cannot find any easy way to get from curl the number of concurrent open sockets it is using, or a callback whenever a new socket is open or close. Let me know if there is any "hidden" way to

Re: cUrl and TFO

2015-11-25 Thread Inca R
practice document. Thanks -- Inca On Wed, Oct 28, 2015 at 11:45 PM, Daniel Stenberg <dan...@haxx.se> wrote: > On Wed, 28 Oct 2015, Inca R wrote: > > Any plans to support TCP Fast Open in cUrl ? ( >> https://tools.ietf.org/html/rfc7413 ) >> >> We are currently look

assert on http2.c on_frame_recv

2015-10-22 Thread Inca R
Hi; Everything was good on 7.43.0 but when upgrading to 7.45.0 my app start crashing on http2.c line 411: conn = data_s->easy_conn; assert(conn); *==>* assert(conn->data == data_s); *<==* httpc = >proto.httpc; switch(frame->hd.type) { This is the thread dump: 0 libsystem_kernel.dylib

Re: assert on http2.c on_frame_recv

2015-10-22 Thread Inca R
Thanks I will try and let you know -- Inca On Thu, Oct 22, 2015 at 2:28 PM, Daniel Stenberg <dan...@haxx.se> wrote: > On Thu, 22 Oct 2015, Inca R wrote: > > Everything was good on 7.43.0 but when upgrading to 7.45.0 my app start >> crashing on >> http2.c lin

Re: assert on http2.c on_frame_recv

2015-10-22 Thread Inca R
Yap; It works OK now, it didnt crash. Thanks -- Inca On Thu, Oct 22, 2015 at 2:40 PM, Inca R <incar...@gmail.com> wrote: > Thanks > I will try and let you know > > -- Inca > > On Thu, Oct 22, 2015 at 2:28 PM, Daniel Stenberg <dan...@haxx.se> wrote: > >

reusing connection on http2

2015-08-15 Thread Inca R
Hi; I'm testing the new http2 implementation in libcurl. My question is related to how the multi interface re uses existing http2 connections for multiplexing new requests. in my application I send requests to: host1.domain host2.domain host10.domain All hostn.domain resolves to the same

DNS Cache issue

2015-08-08 Thread Inca R
Hi; I'm using libcurl 7.31.0 and found an interested issue with DNS cache. We use the CURLOPT_RESOLVE to set the list of HOST:PORT:IPv4 entries into cUrl internal cache. We start observing an issue when using Amazon ELB elastic feature. The ELB will start add/remove IPs from its pool as

Re: how to implement chunk extensions

2013-08-23 Thread Inca R
you write it to the wire. Inca On Fri, Aug 23, 2013 at 3:27 AM, Daniel Stenberg dan...@haxx.se wrote: On Thu, 22 Aug 2013, Inca R wrote: I need to implement chunk extensions when sending POST/PUT/DELETE requests from my client using libcurl. I realize that currently libcurl doesn't support

how to implement chunk extensions

2013-08-22 Thread Inca R
Hi; I need to implement chunk extensions when sending POST/PUT/DELETE requests from my client using libcurl. I realize that currently libcurl doesn't support it. I was looking at the code and found that the write callback to get chunk data rom the client application is in the transfer.c file.