saleae / logic2-automation

Logic2 Automation API
https://saleae.github.io/logic2-automation/
Apache License 2.0
19 stars 8 forks source link

Manager connect is stuck #32

Open schmiph2 opened 1 year ago

schmiph2 commented 1 year ago

From time to time, this call is stuck (at least for 2 min). https://github.com/saleae/logic2-automation/blob/b6468259c696a67168df5d5b3162afb8d3d07c6d/python/saleae/automation/manager.py#L421-L422

Unfortunately, I can't really reproduce it. I propose to add a timeout to the function call. E.g. a fixed value like

with errors._error_handler():
    reply: saleae_pb2.GetAppInfoReply = self.stub.GetAppInfo(saleae_pb2.GetAppInfoRequest(), timeout=20)