Code maintenance

- Switch to HttpClient for remote fetcher
- Don't fail for remote binding on matrix.org
This commit is contained in:
Max Dor
2018-04-13 08:14:09 +02:00
parent ef80f4aa30
commit 78a25c21ba
3 changed files with 47 additions and 19 deletions

View File

@@ -30,7 +30,11 @@ public class CloseableHttpClientFactory {
@Bean
public CloseableHttpClient getClient() {
return HttpClients.custom().setUserAgent("mxisd").build();
return HttpClients.custom()
.setUserAgent("mxisd")
.setMaxConnPerRoute(Integer.MAX_VALUE)
.setMaxConnTotal(Integer.MAX_VALUE)
.build();
}
}