threads / discuss / 27395

git over https and http 1.1

Subject: git over https and http 1.1

## tl;dr

3 messages between May 18, 2011 and May 19, 2011.

replies: 2people: 3as markdown or json

nir.friedman@greenhouse.lotus.com· May 18, 2011, 12:46 UTC · lore
I am using git with https as the transport protocol. 
Response times were around 30 seconds before apache started processing the backend command. 
I added the flags -  BrowserMatch "git"      downgrade-1.0 force-response-1.0
 to the apache conf file, and response times were fast. 
This seems to mean that the libcurl library is not dealing correctly with HTTP 1/1 over SSL. Is this the best fix? 
If so, maybe appropriate documentation should be added to the git setup docs.
Drew Northup· May 19, 2011, 20:31 UTC · re: nir.friedman@greenhouse.lotus.com · lore

Re: git over https and http 1.1

On Wed, 2011-05-18 at 08:46 -0400, Nir.Friedman@greenhouse.lotus.com wrote:

Show 6 quoted lines
> I am using git with https as the transport protocol. 
> Response times were around 30 seconds before apache started processing the backend command. 
> I added the flags -  BrowserMatch "git"      downgrade-1.0 force-response-1.0
>  to the apache conf file, and response times were fast. 
> This seems to mean that the libcurl library is not dealing correctly with HTTP 1/1 over SSL. Is this the best fix? 
> If so, maybe appropriate documentation should be added to the git setup docs.--

Sounds a little drastic to me... Perhaps to find out what's going on you might set up a test repo behind an STunnel instance and have a look at the TCP/HTTP stream between them?

Perhaps Git+libcurl isn't using keep-alive? I'd have to check the code.
-- 
-Drew Northup
________________________________________________
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59
Daniel Stenberg· May 19, 2011, 20:36 UTC · re: Drew Northup · lore

Re: git over https and http 1.1

On Thu, 19 May 2011, Drew Northup wrote:
> Perhaps Git+libcurl isn't using keep-alive? I'd have to check the code.
They do. HTTP 1.1 even does "keep-alive" by default...
-- 
  / daniel.haxx.se

← back to recent threads