On Wed, 2015-07-29 at 16:47 +0000, Mark A. Claassen wrote:
> > Only idempotent methods are safe to retry regardless of the type of i/o 
> > error.
> 
> Maybe I am using "idempotent" more loosely than I should. If I get a 
> Connection Refused error, than (I think) I am assured that the server never 
> got my message.  If I get a NoHttpResponseException, I don't know anything.
> 
> Are these statements correct:
> 
> If I send a message to buy an airline ticket, and I get a Connection Refused 
> message, I need to re-send the message.  Since the first message never got 
> there, I know I will not end up with two tickets.
> 
> The "NoHttpResponseException" implies that the server may or may not have 
> received my message, and, if I re-send the message, I may end up with two 
> tickets.
> 

I believe this is correct. NoHttpResponseException implies only that the
server failed to respond. At the same time the server may have attempted
or completed request processing making it unsafe to retry.

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to