Skip to content

Commit

Permalink
Store raw body in responseData and only decompress when responseBody …
Browse files Browse the repository at this point in the history
…is accessed
  • Loading branch information
jvangaalen committed Dec 11, 2024
1 parent 3fbe450 commit 91a2eaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,10 @@ public SamplePackage configureTransactionSampler(TransactionSampler transactionS
}

/**
* Reset pack to its initial state and clean up transaction results if needed
* Reset pack to its initial state
* @param pack the {@link SamplePackage} to reset
*/
public void done(SamplePackage pack) {
Sampler sampler = pack.getSampler();
if (sampler instanceof TransactionSampler) {
TransactionSampler transactionSampler = (TransactionSampler) sampler;
TransactionController controller = transactionSampler.getTransactionController();
if (transactionSampler.isTransactionDone()) {
// Create new sampler for next iteration
TransactionSampler newSampler = new TransactionSampler(controller, transactionSampler.getName());
SamplePackage newPack = transactionControllerConfigMap.get(controller);
newPack.setSampler(newSampler);
}
}
pack.recoverRunningVersion();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,7 @@ static Stream<Serializable> serializableObjects() throws Throwable {
return getObjects(Serializable.class)
.stream()
.map(Serializable.class::cast)
.filter(o -> !o.getClass().getName().endsWith("_Stub"))
.filter(o -> o.getClass().getName().startsWith("org.apache.jmeter."));
.filter(o -> !o.getClass().getName().endsWith("_Stub"));
}

/*
Expand Down

0 comments on commit 91a2eaf

Please sign in to comment.