Skip to content

Conversation

@hangxie
Copy link
Contributor

@hangxie hangxie commented Sep 17, 2023

This is for #559, tested with my code.

This may not be the best fix, I didn't test performance penalty from this but since most Write are slow due to IO, I think we can live with it.

@hangxie hangxie force-pushed the race-condition branch 2 times, most recently from f9fb536 to 91a1c46 Compare August 17, 2024 02:25
@hangxie
Copy link
Contributor Author

hangxie commented Sep 11, 2024

@xitongsys would you please take a look at this PR? Two fixes included are pretty critical to address race conditions.

Just in case you have concern on performance issue in the description - since the WriteStop will be called only whenever ... write stops, so I don't think adding locking mechanism around codes will be a significant performance problem.

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