Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Commit

Permalink
Increase output message pointer allocation to 1MB size
Browse files Browse the repository at this point in the history
  • Loading branch information
valnoel committed Dec 17, 2019
1 parent e088e84 commit cbf0777
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl MessageEvent for CWorkerEvent {
let job_id = job.job_id;
debug!("Process job: {:?}", job_id);
let process_return = call_worker_process(job);
debug!("Returned code: {:?}", process_return);
debug!("Returned: {:?}", process_return);
match process_return {
ProcessReturn { code: 0, message } => {
Ok(JobResult::new(job_id, JobStatus::Completed, vec![]).with_message(message))
Expand Down
2 changes: 1 addition & 1 deletion src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ pub fn call_worker_process(job: Job) -> ProcessReturn {
let job_params_ptrs_ptr = Box::into_raw(boxed_job_params_ptrs);

// Get output message pointer
let message_ptr = libc::malloc(2048) as *mut c_char;
let message_ptr = libc::malloc(1024*1024) as *mut c_char; // 1MB max. sized message

// Call C worker process function
let return_code = process_func(
Expand Down

0 comments on commit cbf0777

Please sign in to comment.