Add mutex on LinkFromPool to fix #1449

This fixes the race condition that happens when you call publish
concurrently. It adds a valuable test that reproduces the error almost
deterministically, it's hard to say always but I have run this in loop
100 times and it reproduces the error consistently without the patch and
after the patch it works consistently.
This commit is contained in:
Agustin Henze
2025-08-19 14:37:52 +02:00
parent 8ca4cb8dcb
commit 3608c137a0
3 changed files with 318 additions and 8 deletions

View File

@@ -69,4 +69,5 @@ List of contributors, in chronological order:
* Leigh London (https://github.com/leighlondon)
* Gordian Schoenherr (https://github.com/schoenherrg)
* Silke Hofstra (https://github.com/silkeh)
* Itay Porezky (https://github.com/itayporezky)
* Itay Porezky (https://github.com/itayporezky)
* Agustin Henze (https://github.com/agustinhenze)