IPC icon indicating copy to clipboard operation
IPC copied to clipboard

Failed to send request: broken promise

Open reinfallt opened this issue 5 years ago • 1 comments

Just testing with the included CalcNative example.

Running it normally works but trying to simulate a request that would take longer to process on the server side (In this case adding a sleep of 10 seconds) causes the client to fail with "Failed to send request: broken promise".

Is there some sort of timeout setting or is this an issue? ipc_fail

reinfallt avatar Oct 06 '20 11:10 reinfallt

I figured out that you can increase the timeout like this: response = (*client)(std::move(request), std::chrono::milliseconds(30000)).get();

I feel like this needs to be documented.

Is there a reason for the variadic template transactionArgs? It only seems to be forwarded to BeginTransaction which only has an optional std::chrono::milliseconds argument. So transactionArgs can only really be a std::chrono::milliseconds object right now. Is it for future-proofing?

reinfallt avatar Oct 07 '20 06:10 reinfallt