chardev: forbid 'reconnect' option with server sockets
commit4a0582f65648052bf6b1b572312500f6647a1eb0
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 11 Feb 2019 18:24:30 +0000 (11 18:24 +0000)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 12 Feb 2019 16:35:56 +0000 (12 17:35 +0100)
treef2c8a484aac69baed3e3663c26f420dddfb3de41
parent1645984b04fd8597ccdfc6e8530fd17d23f4cdf0
chardev: forbid 'reconnect' option with server sockets

The 'reconnect' option is used to give the sleep time, in seconds,
before a client socket attempts to re-establish a connection to the
server. It does not make sense to set this for server sockets, as they
will always accept a new client connection immediately after the
previous one went away.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20190211182442.8542-5-berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
chardev/char-socket.c