Closed valyagolev closed 8 years ago
подписываю @GarretPI
as a workaround one can just recreate Client
for every request. e.g.:
while(true) {
Client client = new Client(PUBLIC_KEY, SECRET_KEY);
Iterator<File> iterator = client.getFiles().asIterable().iterator();
if (!iterator.hasNext())
break;
file = iterator.next();
file.delete();
}
PoolingClientConnectionManager
's default setting is 2 concurrent connections. Connections are not being released by Client and that is why only first two request succeed.From user's viewpoint everything just hangs forever.