final List<Future<AsynSamplerResultHolder>> retExec = exec.invokeAll(liste);
// call normal shutdown (wait ending all tasks)
exec.shutdown();
// put a timeout if tasks couldn't terminate
exec.awaitTermination(AWAIT_TERMINATION_TIMEOUT, TimeUnit.SECONDS);
CookieManager cookieManager = getCookieManager();
// add result to main sampleResult
for (Future<AsynSamplerResultHolder> future : retExec) {
AsynSamplerResultHolder binRes;
try {
binRes = future.get(1, TimeUnit.MILLISECONDS);
if(cookieManager != null) {
CollectionProperty cookies = binRes.getCookies();
PropertyIterator iter = cookies.iterator();
while (iter.hasNext()) {
Cookie cookie = (Cookie) iter.next().getObjectValue();
cookieManager.add(cookie) ;
}
}
res.addSubResult(binRes.getResult());
setParentSampleSuccess(res, res.isSuccessful() && binRes.getResult().isSuccessful());
} catch (TimeoutException e) {