0

What is the default time for volley to timeout the request in android when we call any API using volley.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

1 Answers1

2

Volley has set default Connection timeout to 2.5 sec for socket and 5 sec for http calls seconds.

See this https://github.com/google/volley/blob/master/src/main/java/com/android/volley/DefaultRetryPolicy.java

and https://github.com/google/volley/blob/master/src/main/java/com/android/volley/toolbox/HttpClientStack.java

You can use RetryPolicy to update it.

See this https://github.com/google/volley/blob/master/src/main/java/com/android/volley/RetryPolicy.java

Rohit5k2
  • 17,948
  • 8
  • 45
  • 57