summaryrefslogtreecommitdiff
path: root/lib/jsonrpc.h
diff options
context:
space:
mode:
authorAnsis Atteka <aatteka@nicira.com>2014-02-18 13:19:36 -0800
committerAnsis Atteka <aatteka@nicira.com>2014-02-19 14:01:05 -0800
commit705d7a393005054a78ede0394b0f7451e60136b4 (patch)
tree5e481bd24956a00446dbfd47988dc2b24d7f5a27 /lib/jsonrpc.h
parentd709419e9dd939f11def1aee1d87d9002df062df (diff)
downloadopenvswitch-705d7a393005054a78ede0394b0f7451e60136b4.tar.gz
ovs-vsctl: reconnect to the database if connection was dropped
If ovs-vsctl has to wait for ovs-vswitchd to reconfigure itself according to the new database, then sometimes ovs-vsctl could end up stuck in the event loop if OVSDB connection was dropped while ovs-vsctl was still running. This patch fixes this problem by letting ovs-vsctl to reconnect to the OVSDB, if it has to wait cur_cfg field to be updated. Issue: 1191997 Reported-by: Spiro Kourtessis <spiro@nicira.com> Signed-Off-By: Ansis Atteka <aatteka@nicira.com>
Diffstat (limited to 'lib/jsonrpc.h')
-rw-r--r--lib/jsonrpc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/jsonrpc.h b/lib/jsonrpc.h
index 539720027..b711d1ab6 100644
--- a/lib/jsonrpc.h
+++ b/lib/jsonrpc.h
@@ -123,6 +123,7 @@ int jsonrpc_session_get_last_error(const struct jsonrpc_session *);
void jsonrpc_session_get_reconnect_stats(const struct jsonrpc_session *,
struct reconnect_stats *);
+void jsonrpc_session_enable_reconnect(struct jsonrpc_session *);
void jsonrpc_session_force_reconnect(struct jsonrpc_session *);
void jsonrpc_session_set_max_backoff(struct jsonrpc_session *,