use java standard http client because apache http clients should be reused because they support pooling but we don't need that

This commit is contained in:
Athou
2023-12-18 10:46:30 +01:00
parent 155e7ba1aa
commit d9ccdf1caf
6 changed files with 101 additions and 219 deletions

View File

@@ -36,7 +36,7 @@ public class FeedFetcher {
private final Set<FeedURLProvider> urlProviders;
public FeedFetcherResult fetch(String feedUrl, boolean extractFeedUrlFromHtml, String lastModified, String eTag, Date lastPublishedDate,
String lastContentHash) throws FeedException, IOException, NotModifiedException {
String lastContentHash) throws FeedException, IOException, NotModifiedException, InterruptedException {
log.debug("Fetching feed {}", feedUrl);
int timeout = 20000;