qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 1dc8a6: char: fix waiting for TLS and telnet


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 1dc8a6: char: fix waiting for TLS and telnet connection
Date: Tue, 16 Aug 2016 04:30:06 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 1dc8a6695c731abb7461c637b2512c3670d82be4
      
https://github.com/qemu/qemu/commit/1dc8a6695c731abb7461c637b2512c3670d82be4
  Author: Marc-André Lureau <address@hidden>
  Date:   2016-08-16 (Tue, 16 Aug 2016)

  Changed paths:
    M qemu-char.c

  Log Message:
  -----------
  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 <address@hidden>
Reviewed-by: Daniel P. Berrange <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]