Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add timeout support #31
The following operations in
Currently, the first just doesn't use a timeout, and the rest errors/panics.
The ABI currently does not support waiting a specified amount (only no wait or indefinite wait): https://docs.rs/fortanix-sgx-abi/0.1.0-rc1/fortanix_sgx_abi/struct.Usercalls.html#method.wait . It's also not clear if timeouts make sense in SGX setting, in particular: is it the case that users depend on accurate timeouts for security purposes?
More work is needed to support
Add a way to cancel async usercalls, then do the async call in conjunction with wait with timeout. If wait returns first, cancel the async call.
Concern: Is this a reasonable API? How does this behavior interact with
Concern: API size increase.