-
Notifications
You must be signed in to change notification settings - Fork 98
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
Add timeout support #31
Comments
More work is needed to support Option 1Add 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. Cancellation here means that the call should return immediately. It may still return succesfully if it was completed in the mean time. Option 2Add Concern: Is this a reasonable API? How does this behavior interact with Option 3Add Concern: API size increase. |
Should the API use deadlines or timeouts? |
This should partially address issue #31
This would partially resolve fortanix/rust-sgx#31
This should partially address issue #31
This should partially address issue #31
…hrogb Enable some timeouts in SGX platform This would partially resolve fortanix/rust-sgx#31 cc @jethrogb and @Goirad
…hrogb Enable some timeouts in SGX platform This would partially resolve fortanix/rust-sgx#31 cc @jethrogb and @Goirad
…hrogb Enable some timeouts in SGX platform This would partially resolve fortanix/rust-sgx#31 cc @jethrogb and @Goirad
…hrogb Enable some timeouts in SGX platform This would partially resolve fortanix/rust-sgx#31 cc @jethrogb and @Goirad
…hrogb Enable some timeouts in SGX platform This would partially resolve fortanix/rust-sgx#31 cc @jethrogb and @Goirad
…hrogb Enable some timeouts in SGX platform This would partially resolve fortanix/rust-sgx#31 cc @jethrogb and @Goirad
…hrogb Enable some timeouts in SGX platform This would partially resolve fortanix/rust-sgx#31 cc @jethrogb and @Goirad
…hrogb Enable some timeouts in SGX platform This would partially resolve fortanix/rust-sgx#31 cc @jethrogb and @Goirad
The following operations in
std
require some form of timeout support: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?
The text was updated successfully, but these errors were encountered: