Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ rustflags = ["-Ctarget-feature=-crt-static"]
# Should be only activated for Alpine but I don't know how to set it...
[build]
rustdocflags = ["-Ctarget-feature=-crt-static"]

# Fix bindgen compatibility with clang 22+ (libxml crate build issue)
# Prevents __float128 parsing errors in system headers
[env]
BINDGEN_EXTRA_CLANG_ARGS = "-target x86_64-unknown-linux-gnu"
14 changes: 12 additions & 2 deletions packages/hurl/src/parallel/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl ParallelRunner {
let workers = (0..workers_count)
.map(|i| {
let worker = Worker::new(WorkerId::from(i), &tx_in, &rx_out);
let state = WorkerState::Idle;
let state: WorkerState = WorkerState::Idle;
(worker, state)
})
.collect::<Vec<_>>();
Expand Down Expand Up @@ -250,7 +250,17 @@ impl ParallelRunner {
// Report the completion of this job and update the progress.
self.progress.print_completed(&msg.result, &mut stderr);

results.push(msg.result);
// release memory before results.push
let mut result = msg.result;
if matches!(self.output_type, OutputType::NoOutput) {
for entry in &mut result.hurl_result.entries {
for call in &mut entry.calls {
call.request.body = Vec::new(); // release memory of request body
call.response.body = Vec::new(); // release memory of response body
}
}
}
results.push(result);

self.progress.update_progress_bar(
&self.workers,
Expand Down