]> git.proxmox.com Git - mirror_qemu.git/commit
chardev/char-socket: Properly make qio connections non blocking
authorSai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Sun, 19 Apr 2020 09:51:40 +0000 (15:21 +0530)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jun 2020 16:10:45 +0000 (12:10 -0400)
commit4d1d4602488fd5f3c0f0601feac4289b474add37
tree2cd48d135941236c4867747b0b845eea3048ee51
parentc82d9d43ed5d1a7021890d788193fdbeae1011c8
chardev/char-socket: Properly make qio connections non blocking

In tcp_chr_sync_read function, there is a possibility of socket
disconnection during blocking read, then tcp_chr_hup function would clean up
the qio channel pointers(i.e ioc, sioc).

Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Message-Id: <1587289900-29485-1-git-send-email-sai.pavan.boddu@xilinx.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
chardev/char-socket.c