[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 Fri, 26 May 2000, Andrew M. Bishop wrote:

> : It seems to me that with the pipelining enabled there is a race
> : condition.  The program thinks that the connection is still open, but
> : when it goes to read the data from it it has closed.  This causes the
> : read errors that I see.  I can't find the location in the code that
> : the decision is made if the connection will contain another set of
> : data (HTTP/1.1) or if it won't (HTTP/1.0).
> 
> This is the root cause of the problem with apt, I would like to see an
> answer.  If there is code that I can put debugging statements I will,
> but I can't find the code that decides if another reply is expected on
> the same connection.

This is completely wrong. It is very simple, it reads up to Content-Length
bytes, if these are all recived then it waits for a new http header. If
the connection closes during the start of that header get then no error is
generated. If it closes during the data get then an error is generated.

It is *always* a server error to not send back a full reply (short data
read). 

Jason



Reply to: