We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 07bcb06 + 4f53b07 commit aaa53f5Copy full SHA for aaa53f5
webmagic-core/src/main/java/us/codecraft/webmagic/downloader/HttpClientDownloader.java
@@ -70,6 +70,7 @@ private CloseableHttpClient getHttpClient(Site site) {
70
CloseableHttpClient httpClient = httpClients.get(domain);
71
if (httpClient == null) {
72
synchronized (this) {
73
+ httpClient = httpClients.get(domain);
74
75
httpClient = httpClientGenerator.getClient(site);
76
httpClients.put(domain, httpClient);
0 commit comments