diff options
| author | Corey Minyard | 2014-10-02 18:17:37 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2014-10-04 08:59:14 +0200 |
| commit | 5dd1f02b4bc2f2c2ef3a2adfd8a412c8c8769085 (patch) | |
| tree | f1857bf14d8e3f9ff98027449cb9a4090eae012a /qapi-schema.json | |
| parent | qemu-char: set socket filename to disconnected when not connected (diff) | |
| download | qemu-5dd1f02b4bc2f2c2ef3a2adfd8a412c8c8769085.tar.gz qemu-5dd1f02b4bc2f2c2ef3a2adfd8a412c8c8769085.tar.xz qemu-5dd1f02b4bc2f2c2ef3a2adfd8a412c8c8769085.zip | |
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 4bfaf20ebe..148097b7d8 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: |
