cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-820502 ] Problem reusing a connection after HTTP resume (with patch)

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 09 Oct 2003 02:11:16 -0700

Bugs item #820502, was opened at 2003-10-09 19:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=820502&group_id=976

Category: libcurl
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Lachlan O'Dea (quelgar)
Assigned to: Daniel Stenberg (bagder)
Summary: Problem reusing a connection after HTTP resume (with patch)

Initial Comment:
I'm using curl 7.10.7. If I set CURLOPT_RESUME_FROM,
perform an HTTP download, then reset
CURLOPT_RESUME_FROM to 0, the next download still has a
Range header with a garbage value.

I traced it to url.c where it decides to reuse the
previous connection. It doesn't unset the
conn->bits.use_range flag if the
data->set.set_resume_from value has been reset to 0.

The attached patch seems to fix it for me.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=820502&group_id=976

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
Received on 2003-10-09