Changeset 14262 in josm


Ignore:
Timestamp:
2018-09-19T23:11:48+02:00 (3 months ago)
Author:
wiktorn
Message:

Fix WMS simultaneus connections

When creating download thread pool set the maximum downloads per host to the
same value as simultaneus connections.

See: #16734

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMSCachedTileLoader.java

    r14261 r14262  
    3434
    3535        super(listener, cache, options);
    36         setDownloadExecutor(TMSCachedTileLoader.getNewThreadPoolExecutor("WMS-downloader-%d", THREAD_LIMIT.get()));
     36        // use WMS specific maximum number of download threads and use the same value for concurrent downloads per host
     37        // for each layer use separate thread pool so the limit set in preferences is per imagery
     38        setDownloadExecutor(TMSCachedTileLoader.getNewThreadPoolExecutor("WMS-downloader-%d", THREAD_LIMIT.get(), THREAD_LIMIT.get()));
    3739    }
    3840
Note: See TracChangeset for help on using the changeset viewer.