Skip to content

Commit 1913aa5

Browse files
committed
disable timeouts for messaging between host and hypervisor handler when gdb feature is on
Signed-off-by: Doru Blânzeanu <[email protected]>
1 parent 90a3f91 commit 1913aa5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/hyperlight_host/src/hypervisor/hypervisor_handler.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,11 +597,15 @@ impl HypervisorHandler {
597597
/// and still have to receive after sorting that out without sending
598598
/// an extra message.
599599
pub(crate) fn try_receive_handler_msg(&self) -> Result<()> {
600-
match self
600+
#[cfg(gdb)]
601+
let response = self.communication_channels.from_handler_rx.recv();
602+
#[cfg(not(gdb))]
603+
let response = self
601604
.communication_channels
602605
.from_handler_rx
603-
.recv_timeout(self.execution_variables.get_timeout()?)
604-
{
606+
.recv_timeout(self.execution_variables.get_timeout()?);
607+
608+
match response {
605609
Ok(msg) => match msg {
606610
HandlerMsg::Error(e) => Err(e),
607611
HandlerMsg::FinishedHypervisorHandlerAction => Ok(()),

0 commit comments

Comments
 (0)