]> git.proxmox.com Git - qemu.git/commit
qemu-sockets: add error propagation to inet_connect_addr
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2012 07:19:01 +0000 (09:19 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Oct 2012 11:54:57 +0000 (13:54 +0200)
commit11663b553b0815b266b6a9060ab9702cf7a5334c
treee6d1823a43353c614791b59a802fb6b476349a03
parenta12fb8ad5b444174ecf3c3270f93ec59ad177bf3
qemu-sockets: add error propagation to inet_connect_addr

perror and fprintf can be removed because all clients can now consume
Errors properly.  However, we'll need to change the non-blocking connect
handlers to take an Error, in order to improve error handling for
migration with the TCP protocol.

This is a minor degradation in error reporting for outgoing migration.
However, until 1.2 this case just failed without even attempting to
connect, so it is still an improvement as far as overall QoI is
concerned.

Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-sockets.c