[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#64530: apt: The http method does not work correctly for HTTP/1.0 proxies



On Wed, 24 May 2000, Andrew M. Bishop wrote:

> Trying this patch instead:
> 
>        if(Major==0 || (Major==1 && Minor==0))
>           Pipeline = false;

Sorry, this is still wrong. HTTP/1.0 has a pipelining extension that
cannot really be detected.
 
> works as I would expect it to for the second and subsequent requests.
> The first request to the server still sends all of the pipeline of
> requests.  This still causes an error for this file.

This is 100% the fault of your server. There is no generic way to fix
software that does not implement the spec!

> I have found a work-around for the apt behaviour, setting
> Acquire::http::Pipeline-Depth fixes it.  This stops pipelining and
> therefore stops the race condition from happening.  The following two
> trials that I performed show this (with the unmodified http program).

Yes, this is there specifically for this case.

> This persuades me that the server is not in error.  How do you explain
> this if it is not an apt problem with making assumptions about the
> pipelining nature of the server?

This only says that the server can operate correctly in a non-pipelined
environment. Clearly it breaks when you begin to pipeline. I've seen it
before, they do something defective and it just breaks like this.

The specs basically require the server to support what APT does [without
corrupting files!], it is an RFC violation if it does not work. 

What are you using for a server?

Jason




Reply to: