summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorNavneetBarwal-RA <navneet51.barwal@routerarchitects.com>2026-02-09 16:52:22 +0530
committerNavneetBarwal-RA <navneet51.barwal@routerarchitects.com>2026-02-09 17:50:16 +0530
commit5b47c96a6d1f9ccaf46180599f44d7f9b188ad69 (patch)
tree04caeb5978aacdaed9edb92360bc6c4eaefc623b /src/migration-scripts
parent407b4e2486387051cf7d4bb83bbe310a87404bb7 (diff)
downloadvyos-1x-5b47c96a6d1f9ccaf46180599f44d7f9b188ad69.tar.gz
vyos-1x-5b47c96a6d1f9ccaf46180599f44d7f9b188ad69.zip
http-api: T8235: Use asyncio lock to prevent deadlock in config-file handler
The HTTPS API config-file handler previously used a blocking threading.Lock in an async FastAPI endpoint, which can block the event loop and make the API unresponsive under concurrent load. This commit replaces the blocking lock with an asyncio.Lock to serialize config operations without blocking async execution, resolving the reported deadlock when concurrent /config-file load operations occur. The behavior of run_in_threadpool and background task scheduling remains consistent with prior logic, so the handler preserves existing commit and commit-confirm semantics.
Diffstat (limited to 'src/migration-scripts')
0 files changed, 0 insertions, 0 deletions