curl-library
Re: header only response [PATCH]
Date: Fri, 5 Apr 2002 20:58:58 +0800
Thanks. I have tested the patch and works. However, I have found another
problem about header parsing which your patch hasn't addressed.
Transfer() will get into infinity loop when the server send a response
like this:
"HTTP 304 Not Modified\r\n\r\n".
Just one line finished response. Do you have any idea?
Jacky
----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "Jacky Lam" <sylam_at_emsoftltd.com>
Cc: "libcurl Mailing list" <curl-library_at_lists.sourceforge.net>
Sent: Thursday, April 04, 2002 2:47 PM
Subject: Re: header only response [PATCH]
> On Wed, 3 Apr 2002, Jacky Lam wrote:
>
> > For normal header+body response, libcurl seems have no problem.
> > However, for header only response, like 304 (Not modified). After
getting
> > the header, libcurl seems still get into select() in Transfer() and wait
> > for 1 sec before it return. It makes a serious performance impact for
> > validating cached object.
>
> Please check out my attached patch. I think it goes more in the style of
what
> should be done...
>
> All my tests work fine with this, but then I didn't discover the problem
you
> did! ;-)
>
> --
> Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
>
Received on 2002-04-05