curl-library
Re: reusing connection on http2
Date: Wed, 19 Aug 2015 09:59:51 +0200 (CEST)
On Mon, 17 Aug 2015, Inca R wrote:
> Any pointer to the code to try helping with a patch or direction ?
I would imagine that we need to
1. add a function that can check if a resolved host name (ie a list of IP
addresses and a possible TLS cert etc) can be coalesced over an existing
connection - assuming the existing connection uses http2. lib/hostip.c is
the home of the entry points to the resolver functions. Connection
coalescing (for different host names) should be possible to switch on/off
by some setting I think.
2. make it possible to "attach" a new stream to an existing connection after
(1) is deemed true, which is basically what we already can do in the
connection re-use case but possibly something needs to be a bit different
as it happends in a later stage than today. See lib/url.c:create_conn() and
how it calls ConnectionExists().
3. write a few test cases that verify this funcionality
4. document it
5. ship it! =)
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2015-08-19