cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_perform hangs on 7.9.8

From: <RBramante_at_on.com>
Date: Mon, 2 Jun 2003 09:48:52 -0400

Yes, that is what I was afraid off. Can we fix the check to just be
conn->size == 0 in the case where the server responds with "Content-Length:
0"?

                                                                                                                               
                      Daniel Stenberg
                      <daniel_at_haxx.se> To: libcurl Mailing list <curl-library_at_lists.sourceforge.net>
                      Sent by: cc:
                      curl-library-admin_at_lists.sour Subject: Re: curl_easy_perform hangs on 7.9.8
                      ceforge.net
                                                                                                                               
                                                                                                                               
                      06/02/2003 09:10 AM
                      Please respond to
                      curl-library
                                                                                                                               
                                                                                                                               

On Fri, 30 May 2003 RBramante_at_on.com wrote:

> else if(conn->size <= 0 && conn->maxdownload <= 0) {
> data->set.no_body = TRUE;
> k->keepon = 0;
> }
>
> to the existing
>
> if (k->write_after_100_header) {
> ...
> }

I'm sorry, but this is not a very good general fix. It basicly makes a slow
server response get treated as an end-of-document and I can't see how that
is
goodness.

--
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-06-02