Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to know rpc master timeout? #73

Open
liangruxing opened this issue Mar 22, 2024 · 1 comment
Open

how to know rpc master timeout? #73

liangruxing opened this issue Mar 22, 2024 · 1 comment

Comments

@liangruxing
Copy link

exe a code:
String ipcName = "ipcName";
RpcBuffer ipcSlave = new RpcBuffer(ipcName, (msgId, payload) =>
{
log.Info("ipcSlave receive");
//how to know master timeout?
Thread.Sleep(10*1000);
log.Info("ipcSlave finish work");
return new byte[1];
});

exe b code:
String ipcName = "ipcName";
RpcBuffer ipcMaster = new RpcBuffer(ipcName);
for (int i = 0; i < 1000; i++)
{
ipcMaster.RemoteRequest(timeoutMs: 10);
}
log.Info("all request timeout!");

When program b times out, how does program a know and stop work ?

@justinstenning
Copy link
Owner

Currently there would be no way to know without some other form of comms.

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

No branches or pull requests

2 participants