Skip to content

Conversation

@marc1uk
Copy link
Contributor

@marc1uk marc1uk commented Nov 28, 2024

ServicesBackend improvements.

  • remove unnecessary wrapping of DoCommand in thread
  • propagate timeout from SendCommand to zmq::poll in PollAndSend. Previously the timeout was only used as the time taken to wait for a reply, but the send poll timed out after an unrelated short amount of time (services backend configure variable, default 50ms). That would mean a SendCommand may return in 50ms with "no listener" even if the timeout specified was 5000ms.

This PR builds on #36.

superkanalysis and others added 8 commits November 14, 2024 11:29
…ndSend so that poll time is timeout (rather than class member). Could be problematic as it means a user calling SendCommand with a long timeout could cause backend to get stuck, but only if the poll fails (in which case it can't do anything anyway)...
@brichards64 brichards64 merged commit 437853a into ToolDAQ:main Jul 30, 2025
1 check failed
@marc1uk marc1uk deleted the backendimpr branch November 20, 2025 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants