It seems that there's no way to control the max size of Dispatcher.readyAsyncCalls.
Consider the following scenario:
- HTTP server hangs (or unable to respond quickly);
- Use okhttp to send a large amount of HTTP async requests to the above server;
- Outgoing requests are stored in Dispatcher.runningAsyncCalls and wait for response/timeout, which means the throughput is very low;
- Other requests are kept in Dispatcher.readyAsyncCalls, without timeout or limitation of max count. If we keep sending requests, the memory usage of Dispatcher.readyAsyncCalls keeps growing.