HttpClient automatically retires before the response is received from server

Posted by RD on Stack Overflow See other posts from Stack Overflow or by RD
Published on 2010-03-11T17:56:20Z Indexed on 2010/03/11 17:59 UTC
Read the original article Hit count: 758

Filed under:
|
|

Hi all, I'm come upon a wierd problem with java HttpClient library. Specifically the library automatically retries my request (POST requests) even before the response is received from the server. Moreover the weirder problem is that this only happens on specific hosts (machines).

So the end result is if a post request succeeds, then there may be an exact same post request coming to the server which the server can't handle. Now, I do want the retry behavior, but it should behave intuitively.
Anyone faced this kind of problem before, or is there a way to configure http client to wait for a specific time before retrying. I'm not sure what going wrong here.

© Stack Overflow or respective owner

Related posts about httpclient

Related posts about failure