okhttp

Does OkHttp’s maxRequests/maxRequestsPerHost apply to synchronous requests?


Does OkHttp’s maxRequests/maxRequestsPerHost apply to synchronous/blocking requests? The documentation is not clear.

https://square.github.io/okhttp/5.x/okhttp/okhttp3/-dispatcher/index.html


Solution

  • No. There are no limits on synchronous requests.