OSDN Git Service

python/aqmp: split _client_connected_cb() out as _incoming()
authorJohn Snow <jsnow@redhat.com>
Fri, 25 Feb 2022 20:59:42 +0000 (15:59 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 7 Mar 2022 19:36:41 +0000 (14:36 -0500)
commit830e6fd36e2aef37b158a10dea6c3853ce43b20c
tree3309fb6af00a34afaaaf986ac1166e284f2a3bd1
parent68a6cf3ffe3532c0655efbbf5910bd99a1b4a3fa
python/aqmp: split _client_connected_cb() out as _incoming()

As part of disentangling the monolithic nature of _do_accept(), split
out the incoming callback to prepare for factoring out the "wait for a
peer" step. Namely, this means using an event signal we can wait on from
outside of this method.

Signed-off-by: John Snow <jsnow@redhat.com>
Acked-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20220225205948.3693480-5-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/aqmp/protocol.py