Re: [PATCH 2/2] python/qemu/machine: accept QMP connection asynchronously

2022-06-30 Thread John Snow
On Thu, Jun 30, 2022 at 4:23 AM Daniel P. Berrangé wrote: > > On Wed, Jun 29, 2022 at 07:54:08PM -0400, John Snow wrote: > > On Tue, Jun 28, 2022 at 10:17 AM Daniel P. Berrangé > > wrote: > > > > > > On Tue, Jun 28, 2022 at 05:49:39PM +0400, marcandre.lur...@redhat.com > > > wrote: > > > > From

Re: [PATCH 2/2] python/qemu/machine: accept QMP connection asynchronously

2022-06-30 Thread Daniel P . Berrangé
On Wed, Jun 29, 2022 at 07:54:08PM -0400, John Snow wrote: > On Tue, Jun 28, 2022 at 10:17 AM Daniel P. Berrangé > wrote: > > > > On Tue, Jun 28, 2022 at 05:49:39PM +0400, marcandre.lur...@redhat.com wrote: > > > From: Marc-André Lureau > > > > > > QMP accept is currently synchronous. If qemu di

Re: [PATCH 2/2] python/qemu/machine: accept QMP connection asynchronously

2022-06-29 Thread John Snow
On Tue, Jun 28, 2022 at 10:17 AM Daniel P. Berrangé wrote: > > On Tue, Jun 28, 2022 at 05:49:39PM +0400, marcandre.lur...@redhat.com wrote: > > From: Marc-André Lureau > > > > QMP accept is currently synchronous. If qemu dies before the connection > > is established, it will wait there. Instead t

Re: [PATCH 2/2] python/qemu/machine: accept QMP connection asynchronously

2022-06-28 Thread Daniel P . Berrangé
On Tue, Jun 28, 2022 at 05:49:39PM +0400, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > QMP accept is currently synchronous. If qemu dies before the connection > is established, it will wait there. Instead turn the code to do > concurrently accept() and wait(). Returns when the

[PATCH 2/2] python/qemu/machine: accept QMP connection asynchronously

2022-06-28 Thread marcandre . lureau
From: Marc-André Lureau QMP accept is currently synchronous. If qemu dies before the connection is established, it will wait there. Instead turn the code to do concurrently accept() and wait(). Returns when the first task is completed to determine whether a connection was established. Signed-off