Re: [PATCH v3 09/25] python/aqmp: add AsyncProtocol.accept() method

2021-08-19 Thread Eduardo Habkost
On Thu, Aug 19, 2021 at 11:48:16AM -0400, John Snow wrote: > On Thu, Aug 19, 2021 at 10:50 AM Eric Blake wrote: > > > On Wed, Aug 18, 2021 at 10:24:52AM -0400, John Snow wrote: > > > > > > > > > > +@upper_half > > > > > +@require(Runstate.IDLE) > > > > > +async def accept(self, addres

Re: [PATCH v3 09/25] python/aqmp: add AsyncProtocol.accept() method

2021-08-19 Thread John Snow
On Thu, Aug 19, 2021 at 10:50 AM Eric Blake wrote: > On Wed, Aug 18, 2021 at 10:24:52AM -0400, John Snow wrote: > > > > > > > > +@upper_half > > > > +@require(Runstate.IDLE) > > > > +async def accept(self, address: Union[str, Tuple[str, int]], > > > > + ssl: Option

Re: [PATCH v3 09/25] python/aqmp: add AsyncProtocol.accept() method

2021-08-19 Thread Eric Blake
On Wed, Aug 18, 2021 at 10:24:52AM -0400, John Snow wrote: > > > > > > +@upper_half > > > +@require(Runstate.IDLE) > > > +async def accept(self, address: Union[str, Tuple[str, int]], > > > + ssl: Optional[SSLContext] = None) -> None: > > > +""" > > > +

Re: [PATCH v3 09/25] python/aqmp: add AsyncProtocol.accept() method

2021-08-18 Thread John Snow
On Tue, Aug 17, 2021 at 3:30 PM Eric Blake wrote: > On Tue, Aug 03, 2021 at 02:29:25PM -0400, John Snow wrote: > > It's a little messier than connect, because it wasn't designed to accept > > *precisely one* connection. Such is life. > > > > Signed-off-by: John Snow > > --- > > python/qemu/aqmp

Re: [PATCH v3 09/25] python/aqmp: add AsyncProtocol.accept() method

2021-08-17 Thread Eric Blake
On Tue, Aug 03, 2021 at 02:29:25PM -0400, John Snow wrote: > It's a little messier than connect, because it wasn't designed to accept > *precisely one* connection. Such is life. > > Signed-off-by: John Snow > --- > python/qemu/aqmp/protocol.py | 89 ++-- > 1 file

[PATCH v3 09/25] python/aqmp: add AsyncProtocol.accept() method

2021-08-03 Thread John Snow
It's a little messier than connect, because it wasn't designed to accept *precisely one* connection. Such is life. Signed-off-by: John Snow --- python/qemu/aqmp/protocol.py | 89 ++-- 1 file changed, 85 insertions(+), 4 deletions(-) diff --git a/python/qemu/aqmp/