mercury icon indicating copy to clipboard operation
mercury copied to clipboard

HG: add timeout test

Open soumagne opened this issue 4 years ago • 2 comments

Not really high-priority but once in a while we have timeout issues (not at the moment) and it would be fairly easy to measure how much time is spent in routines that take a timeout.

soumagne avatar Sep 07 '20 03:09 soumagne

I am using Mercury for RPC in my project. Link states that timeouts are not supported by mercury due to metadata overhead. Hence, our project uses our own timeouts and then invoke HG_Cancel() in case timer expires.

What timeout tests are we exactly talking about in the current task? Has the timeouts been implemented in the latest release or is in pipeline?

lokesharo avatar May 27 '21 05:05 lokesharo

This task was meant to add tests that check existing timeouts that are passed to functions such as HG_Progress() / HG_Trigger(). We do not plan to support passing of timeouts to HG_Forward() / HG_Respond() at this time as this would require tracking of operations internally. If you need something that facilitates implementation of timeouts or need timers, you can look at using mercury_time.h though. Using your own timeout and calling cancel is what we intend you to do.

soumagne avatar May 27 '21 15:05 soumagne