cURL / Mailing Lists / curl-library / Single Mail


Re: Curl_retry_request

From: Daniel Stenberg <>
Date: Sat, 19 Dec 2009 20:13:22 +0100 (CET)

On Fri, 18 Dec 2009, Kevin Baughman wrote:

>> First, why would you want to disable retrying a request?
> The main reason is that I have a request that can not be received by the
> server twice. Regardless of how much data is transferred. Does the logic
> below take into account if the "PUT" itself was received? So yes, try to
> reuse the connection, and fail if it can't be reused would fix this case.

Yes, the PUT itself is counted by the data->req.headerbytecount field, so this
should only ever happen if no data at all managed to get sent. A single sent
(header) byte will prevent this retry.

List admin:
Received on 2009-12-19