in common/src/main/java/jetbrains/buildServer/torrent/torrent/TorrentDownloader.java [65:80]
public TorrentDownloader(@NotNull final TorrentMetadata metadata,
@NotNull final FileProgress fileDownloadProgress,
int minPeersCount,
int timeoutForFindingPeers,
int idleTimeout) {
myTorrentMetadata = metadata;
myFileDownloadProgress = fileDownloadProgress;
myMinPeersCount = minPeersCount;
myTimeoutForFindingPeers = timeoutForFindingPeers;
myIdleTimeout = idleTimeout;
myDownloadedPiecesCount = new AtomicInteger();
myConnectedPeersCount = new AtomicInteger();
mySemaphore = new Semaphore(0);
myFailedExceptionHolder = new AtomicReference<Throwable>();
myReceivedPiecesCount = new AtomicInteger();
}