You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below are some sample logs. Here specified timeouts are 5, 10, 20, 40 ms but as per marker logs, the attempts of request took 35, 27, 44, 301 ms respectively.
The timeout values provided in the retry policy are passed to the HttpStack, and it is up to the stack to decide how to interpret / use timeouts. For example, HurlStack uses the value as the connect and read timeouts on the underlying HttpURLConnection:
Without knowing much about the internals of HttpURLConnection, it seems plausible that the socket could successfully connect and begin returning bytes within some timeout while still taking longer to actually read the full response over the wire.
There might be a use case for specifying a global request timeout that applies across the full operation, which is probably closer to how you're thinking about the timeout, but that would be challenging to implement with Volley's current blocking architecture. It might be more feasible when Volley becomes asynchronous (see #181).
Below are some sample logs. Here specified timeouts are 5, 10, 20, 40 ms but as per marker logs, the attempts of request took 35, 27, 44, 301 ms respectively.
The text was updated successfully, but these errors were encountered: