cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

[ curl-Bugs-994165 ] fwrite() informs of a partial write for no good reason

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 19 Jul 2004 16:15:02 -0700

Bugs item #994165, was opened at 2004-07-19 16:15
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=994165&group_id=976

Category: http
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: fwrite() informs of a partial write for no good reason

Initial Comment:
Working on libcurl for c++ version 7.11.1

Steps to reproduce:
1. Create a set of HTTP files, writing data to each one
of them as follows
for (int i=0 ;< 20; i++)
{
   1. Call Curl_Open() for file name http://<http-
server>/myfilename-i
   2. Call a Curl_Write operation with buffer size = 20000
bytes.
   3. Call a Write operation with buffer size = 40000
   4. Call a Curl-Close() operation
}
The problem occurs in sendf.c function: Curl_client_write
where fwrite returns wrote < len.
I checked GetLastError() which equal to 0 to indicate no
system error.

My name : Orna Haber
My email address orna.haber_at_ca.com

The attached zip file includes 2 source files that
illustrates the steps to reproduce and my proposed
soltion to the problem in sendf.c (sendf.c of version
7.11.1)

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=994165&group_id=976
Received on 2004-07-20

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET