curl-library
Re: Curl_retry_request
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 19 Dec 2009 20:13:22 +0100 (CET)
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.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-12-19