diff options
author | Corey Minyard <cminyard@mvista.com> | 2014-10-02 11:17:37 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-10-04 08:59:14 +0200 |
commit | 5dd1f02b4bc2f2c2ef3a2adfd8a412c8c8769085 (patch) | |
tree | f1857bf14d8e3f9ff98027449cb9a4090eae012a /qapi-schema.json | |
parent | 16cc4ffe34f3fd6d0626ed459fb241304786a04b (diff) | |
download | qemu-5dd1f02b4bc2f2c2ef3a2adfd8a412c8c8769085.zip qemu-5dd1f02b4bc2f2c2ef3a2adfd8a412c8c8769085.tar.gz qemu-5dd1f02b4bc2f2c2ef3a2adfd8a412c8c8769085.tar.bz2 |
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>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r-- | qapi-schema.json | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index 4bfaf20..148097b 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -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: |