nthallen / monarch

Monarch Data Acquisition System
0 stars 1 forks source link

Revisit Retry Edge Cases #187

Open nthallen opened 1 year ago

nthallen commented 1 year ago

Changes to support optional Clients:

Notes:

nthallen commented 1 year ago

Best practice is to consider retry strategy whenever a class is derived from Socket.

nthallen commented 1 year ago

Changing behavior for server sockets:

That should mean no immediate change, but on a case-by-case basis, we can enable retries with set_retries().

nthallen commented 1 year ago

playbacksrvr running as a session-specific local server without responsibilities needs option not to connect to tm_gen and/or it should not terminate if tm_gen is not present

nthallen commented 1 year ago

Tried making Clients default to set_retries(0,0,0,true). Encountered problem with ci_server() within playbacksrvr dying because tm_gen was not found. Updated cmdif_wr_clt to use set_retries(0,0,0,false), and playbacksrvr was OK

Encountered additional problem with subbuspp when trying to run Moudisrvr to test Moudialgo.

Then tried going back to change the Client default to set_retries(0,0,0,false) and ran into trouble with rdr/bfr when trying to quit out of playback. Both were running ready, may be counting on the implicit quit functionality. (debugging with SCoPEx 221110.2)