Python: Fix qmp race condition on accept()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | python/aqmp: add _session_guard()python/ | +62 | 1 reply | |
| 2/10 | python/aqmp: rename 'accept()' to 'start_server_and_accept()'python/ python/ python/ | +17 | 1 reply | |
| 3/10 | python/aqmp: remove _new_session and _establish_connectionpython/ python/ | +53 | 1 reply | |
| 4/10 | python/aqmp: split _client_connected_cb() out as _incoming()python/ | +58 | 1 reply | |
| 5/10 | python/aqmp: squelch pylint warning for too many linespython/ | +3 | 1 reply | |
| 6/10 | python/aqmp: refactor _do_accept() into two distinct stepspython/ python/ | +26 | 1 reply | |
| 7/10 | python/aqmp: stop the server during disconnect()python/ | +5 | 1 reply | |
| 8/10 | python/aqmp: add start_server() and accept() methodspython/ python/ | +69 | 1 reply | |
| 9/10 | python/aqmp: fix race condition in legacy.pypython/ | +2 | 2 replies | |
| 10/10 | python/aqmp: drop _bind_hack()python/ python/ | +4 | 1 reply |
Reviews trailers per patch
All 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Daniel P. Berrangé | Kevin Wolf |
|---|---|---|
| Series | A-b | |
| 1/10 | R-b | |
| 2/10 | R-b | |
| 3/10 | R-b | |
| 4/10 | R-b | |
| 5/10 | R-b | |
| 6/10 | R-b | |
| 7/10 | R-b | |
| 8/10 | R-b | |
| 9/10 | R-b | |
| 10/10 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/10] Python: Fix qmp race condition on accept()
GitLab: https://gitlab.com/jsnow/qemu/-/commits/python-aqmp-accept-changes
CI: https://gitlab.com/jsnow/qemu/-/pipelines/479795153
This redesigns the async QMP interface to allow for race-free connections from the synchronous interface. It should hopefully address the race conditions Peter has been seeing on the NetBSD vm tests.
John Snow (10):
python/aqmp: add _session_guard()
python/aqmp: rename 'accept()' to 'start_server_and_accept()' python/aqmp: remove _new_session and _establish_connection python/aqmp: split _client_connected_cb() out as _incoming() python/aqmp: squelch pylint warning for too many lines python/aqmp: refactor _do_accept() into two distinct steps python/aqmp: stop the server during disconnect() python/aqmp: add start_server() and accept() methods python/aqmp: fix race condition in legacy.py python/aqmp: drop _bind_hack()
python/qemu/aqmp/legacy.py | 7 +- python/qemu/aqmp/protocol.py | 393 +++++++++++++++++++++-------------- python/tests/protocol.py | 45 ++-- 3 files changed, 273 insertions(+), 172 deletions(-)
Signature · 1 line
2.34.1