Skip to content

Commit

Permalink
Dramatically increase timeouts
Browse files Browse the repository at this point in the history
The old timeouts were too low for CI runs, causing a reset of the
simulator which blocked the test runs.
  • Loading branch information
sk1p committed Apr 19, 2023
1 parent 6f71c99 commit 524ce8f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libertem_dectris/src/sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,8 @@ impl FrameSender {
// So I think it is warranted to go into an error state if the
// consumer can't keep up.

// FIXME: We may want to add a "replay speed" later to limit the message
// rate to something sensible.

// milliseconds
socket.set_sndtimeo(1000)?;
socket.set_sndtimeo(30000)?;

let m = cursor.read_raw_msg();
socket.send(m, zmq::SNDMORE)?;
Expand Down Expand Up @@ -179,7 +176,7 @@ impl FrameSender {
CB: Fn() -> Option<()>,
{
// milliseconds
self.socket.set_sndtimeo(100)?;
self.socket.set_sndtimeo(30000)?;

let cursor = &mut self.cursor;
cursor.seek_to_first_header_of_type("dheader-1.0");
Expand Down

0 comments on commit 524ce8f

Please sign in to comment.