|
|
|
|
|
by ekimekim
4077 days ago
|
|
cynical answer: I've seen alot of races get "fixed" by adding a sleep() or similar less cynical answer: Commonly you already have some kind of means to handle races - locking, transactions, some other variety of extra check - and the fix for newly discovered races is "oh, I didn't realise that could happen. add lock" |
|
Adding a random time to sleep might work, but some requests would run noticeably slower.