You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Murat Balkan <mr...@gmail.com> on 2016/10/31 14:10:38 UTC

Calculating the Response Duration when Retry is activated

Hi,

I am measuring the response duration by getting the system time before the
get call and after the get call and take the difference between them.

However, when the retry is enabled, (my retryhandler returns true) this
part gives me the total time.

Is it possible to get the last duration oob? I thought of reaching out the
thread from the handler to reset the start time attribute but the handler
is given during the client creation time as 1 instance and it would be
tricky to find the right Thread who made the handler fired.

Can you give me some idea how to handle this?

Thanks
Murat