cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: header only response [PATCH]

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 4 Apr 2002 08:47:35 +0200 (MET DST)

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-04