rconn: Disable probe for local connections.
authornghosh@us.ibm.com <nghosh@us.ibm.com>
Tue, 24 May 2016 22:47:20 +0000 (15:47 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 3 Jun 2016 18:50:53 +0000 (11:50 -0700)
commitc1bfdd9da7eb9f194a2e424f64ef41b02bbf7442
treea09dcd0db4f2c8228d58e37603bd08d759521e02
parent7127583dc930bda49c8c33de781b9609e4c7381a
rconn: Disable probe for local connections.

There are four sessions established from ovn-controller to the following:
OVN Southbound — JSONRPC based
Local ovsdb — JSONRPC based
Local vswitchd — openflow based from ofctrl
Local vswitchd — openflow based from pinctrl

All of these sessions have their own probe_interval, For the last
two connections, they do not need probe_timer as they are over unix domain
socket. This patch takes care of that.

This change has been tested putting logs in several places like in
ovn-controller.c, lib/rconn.c to make sure the probe_timer is
disabled. Also, by making sure from ovn-controller's
log file that there is no more reconnect happening due to probe
under heavy load.

Signed-off-by: Nirapada Ghosh <nghosh@us.ibm.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/rconn.c