qemu-char: Add reconnecting to client sockets
Adds a "reconnect" option to socket backends that gives a reconnect timeout. This only applies to client sockets. If the other end of a socket closes the connection, qemu will attempt to reconnect after the given number of seconds. Signed-off-by: Corey Minyard <cminyard@mvista.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
16cc4ffe34
commit
5dd1f02b4b
3 changed files with 96 additions and 17 deletions
|
|
@ -2651,14 +2651,19 @@
|
|||
# @nodelay: #optional set TCP_NODELAY socket option (default: false)
|
||||
# @telnet: #optional enable telnet protocol on server
|
||||
# sockets (default: false)
|
||||
# @reconnect: #optional For a client socket, if a socket is disconnected,
|
||||
# then attempt a reconnect after the given number of seconds.
|
||||
# Setting this to zero disables this function. (default: 0)
|
||||
# (Since: 2.2)
|
||||
#
|
||||
# Since: 1.4
|
||||
##
|
||||
{ 'type': 'ChardevSocket', 'data': { 'addr' : 'SocketAddress',
|
||||
'*server' : 'bool',
|
||||
'*wait' : 'bool',
|
||||
'*nodelay' : 'bool',
|
||||
'*telnet' : 'bool' } }
|
||||
{ 'type': 'ChardevSocket', 'data': { 'addr' : 'SocketAddress',
|
||||
'*server' : 'bool',
|
||||
'*wait' : 'bool',
|
||||
'*nodelay' : 'bool',
|
||||
'*telnet' : 'bool',
|
||||
'*reconnect' : 'int' } }
|
||||
|
||||
##
|
||||
# @ChardevUdp:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue