]> git.proxmox.com Git - mirror_qemu.git/commit
python/machine: use connect-based interface for existing sockets
authorJohn Snow <jsnow@redhat.com>
Wed, 17 May 2023 16:34:04 +0000 (12:34 -0400)
committerJohn Snow <jsnow@redhat.com>
Wed, 31 May 2023 20:25:35 +0000 (16:25 -0400)
commit7f5f3ae7d589d9297b2903e79cba1492807883d4
tree5f6187105969e9289d40b76fa9f9a7353145a031
parentb8d4ca18233dbd7c215c67b00fd3eb7887cf2b82
python/machine: use connect-based interface for existing sockets

Instead of using accept() with sockets (which uses open_with_socket()),
use calls to connect() to utilize existing sockets instead. A benefit of
this is more robust error handling already present within the connect()
call that isn't present in open_with_socket().

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20230517163406.2593480-4-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/machine/machine.py