Commit b489d86
committed
fix: move lock release inside critical section to close TOCTOU window
At two call sites, _release_message_lock was called outside the
async with block, followed by an await (save_query_log). Moving the
pop inside the lock prevents a concurrent coroutine from creating a
new lock for the same msg_id during the yield.
Co-authored-by: Isaac1 parent 19d51bd commit b489d86
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| |||
0 commit comments