intermezzo with libcurl 7.9.8

"Chen Yang" <[email protected]> Mon, 24 Feb 2003 06:45:57 +0800
Newsgroups gmane.comp.file-systems.intermezzo.devel
Message-ID <[email protected]>
Hi,all:
   I have updated the modules to work with libcurl 7.9.8,which is the default version with RH 8.0.The current intermezzo can't work with it well.
   The problem is mainly caused by code in lib/httpclient.c:
    1)the misuse of range option. The range option must be turned off if there are no valid range specified,i.e.,the startnumber>=0 and endnumber>0. In current CVS, the code should be modified, remove the else part(line 199,9-201,8 and 260,9-262,8)
" else
                curl_easy_setopt(handle, CURLOPT_RANGE, "");
"
    2)the intact using of curl_easy_perform.In lib/httpclient.c there are two functions httpclient_fetch_file/httpclient_fetch will use it to fetch the file.If either of they have set up the range option, the next will use it,too. This will also cause the same problem as 1). So I added curl_easy_cleanup before intact reusing.I have added the code before both of the functions return.("curl_easy_cleanup(handle);".
  
   Both of these two conditions will make the apache 2.0 return 416 range error.

   Any feedback or discussion?
--
  Chen Yang
  












-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge