summaryrefslogtreecommitdiffstats
path: root/slirp/slirp.c
diff options
context:
space:
mode:
authorMarc-André Lureau2016-08-16 10:33:32 +0200
committerPeter Maydell2016-08-16 12:50:55 +0200
commit1dc8a6695c731abb7461c637b2512c3670d82be4 (patch)
tree92c9f7f2948f4dfc9e2c6a3e5ca1d5c94a9febb7 /slirp/slirp.c
parentvirtio-gpu: fix missing log.h include file (diff)
downloadqemu-1dc8a6695c731abb7461c637b2512c3670d82be4.tar.gz
qemu-1dc8a6695c731abb7461c637b2512c3670d82be4.tar.xz
qemu-1dc8a6695c731abb7461c637b2512c3670d82be4.zip
char: fix waiting for TLS and telnet connection
Since commit d7a04fd7d5008, tcp_chr_wait_connected() was introduced, so vhost-user could wait until a backend started successfully. In vhost-user case, the chr socket must be plain unix, and the chr+vhost setup happens synchronously during qemu startup. However, with TLS and telnet socket, initial socket setup happens asynchronously, and s->connected is not set after the socket is accepted. In order for tcp_chr_wait_connected() to not keep accepting new connections and proceed with the last accepted socket, it can check for s->ioc instead. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 20160816083332.15088-1-marcandre.lureau@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'slirp/slirp.c')
0 files changed, 0 insertions, 0 deletions