You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've noticed that certain race conditions could occur when we use this library to process a high volume of passes using an in-memory pass template. Although I intended to submit this issue with an associated PR to resolve the problem, I realized this might require more work than expected, so I'm submitting the issue in advance and potentially creating a PR later.
This is one of the race conditions we've found when loading assets from a URL:
We solved those problems using an external mutex. Still, we could make the in-memory template concurrency-safe by using a mutex to protect the InMemoryPassTemplate.files internal map.
The text was updated successfully, but these errors were encountered:
rwngallego
changed the title
In-memory template race conditions
Race conditions in In-memory pass template
Dec 20, 2024
rwngallego
changed the title
Race conditions in In-memory pass template
Race conditions in in-memory pass template
Dec 20, 2024
We've noticed that certain race conditions could occur when we use this library to process a high volume of passes using an in-memory pass template. Although I intended to submit this issue with an associated PR to resolve the problem, I realized this might require more work than expected, so I'm submitting the issue in advance and potentially creating a PR later.
This is one of the race conditions we've found when loading assets from a URL:
There's another one when signing a pass:
We solved those problems using an external mutex. Still, we could make the in-memory template concurrency-safe by using a mutex to protect the
InMemoryPassTemplate.files
internal map.The text was updated successfully, but these errors were encountered: