0

I tried to switch my HTTPUrlConnection to OkHttp3 in my application, but ran into a few problems. I initiated the connectionPool(maxIdleConnections, evictionTime) once, which would start the server with 100 max idle connections and 20 second eviction time configuration.I counted the ConnectionPool.connectionCount and it was more than what I configured (100).

  • I set a constraint on the ConnectionPool.connectionCount but where are they being applied?. I didn't understand what happened behind the connection pool concept. Kindly anyone assist this above case.
  • And as my analysis, Performance wise both are seems to be same at end. Could you suggest any other connections for replacing HttpUrlConnections to reach better.
Kaushik KR
  • 11
  • 2

0 Answers0