Feature #4977: Add connection timeout, remove usage of thread for batchDownload