public AsyncHttpClientConfig.Builder setRequestTimeoutInMs(int defaultRequestTimeoutInMs)
AsyncHttpClient
wait for a responsedefaultRequestTimeoutInMs
- the maximum time in millisecond an AsyncHttpClient
wait for a responseAsyncHttpClientConfig.Builder
Hello, I see the method below to set the read timeout for the response, but not sure it is working the way it should. The timer seems to be started right after the http request is made, rather than once the body of the request is fully pushed to the server. For example, if I want the read timeout to be 60 second I do not want the timeout to happen while im still writing the request (long chunked request, minutes) to the server, I want the timeout to happen if I do not get any response for 60 seconds after writing the full request. Is this reasonable?
--
You received this message because you are subscribed to the Google Groups "Dispatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dispatch-scala+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That was my interpretation what idle meant as well, but I don't have any experience with timeouts.Doesn't seem like read timeout is verified with testsWhat the read timeout means for the underlying Netty client, is also unclear. This 3 year old stack overflow post takes it up, though
On Thu, Oct 20, 2016 at 3:08 PM, Daniel Bolanos <dani.b...@gmail.com> wrote:
With "Idle" it means both not sending and not receiving any data, right?thanks againDani
On Thursday, October 20, 2016 at 3:06:24 PM UTC-4, Daniel Bolanos wrote:Thank you Aaron, we did not see that oneDani
On Wednesday, October 19, 2016 at 2:42:49 PM UTC-4, Aaron Hawley wrote:On Wed, Oct 19, 2016 at 1:07 PM, Daniel Bolanos <dani.b...@gmail.com> wrote:Hello, I see the method below to set the read timeout for the response, but not sure it is working the way it should. The timer seems to be started right after the http request is made, rather than once the body of the request is fully pushed to the server. For example, if I want the read timeout to be 60 second I do not want the timeout to happen while im still writing the request (long chunked request, minutes) to the server, I want the timeout to happen if I do not get any response for 60 seconds after writing the full request. Is this reasonable?Would a read timeout be sufficient?
--
You received this message because you are subscribed to the Google Groups "Dispatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dispatch-scal...@googlegroups.com.