Skip to content

Allow max 16 tasks doing quote generation - #186

Open
ameba23 wants to merge 1 commit into
mainfrom
peg/cancel-attestation-generation
Open

ameba23 wants to merge 1 commit into
mainfrom
peg/cancel-attestation-generation

Conversation

@ameba23

@ameba23 ameba23 commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

This gets around an issue with using tokio::spawn_blocking for starting synchronous attestation generation tasks from the async runtime.

This issue is we can't add a timeout to these, but we do add an overall timeout to connections. The danger is, that is the quote generation task hangs, and the corresponding connection task gets killed, the generation task is left running. These could mount up indefinately causing resource exhaustion.

This PR introduces a limit on the number of these tasks we can have (currently 16). This means we may end up blocked by a hung tasks but we can never keep creating them indefinitely.

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

Successfully merging this pull request may close these issues.

1 participant