python: Fix issue with probes for JSONRPC connections
authorSumit Garg <sumit@extremenetworks.com>
Thu, 25 Jun 2015 13:24:54 +0000 (09:24 -0400)
committerBen Pfaff <blp@nicira.com>
Thu, 25 Jun 2015 15:54:29 +0000 (08:54 -0700)
commitdb7474614d835dddc9c72c8d527a9f7f751cbb7d
treedbf16b89fd5cb4626136039dedc0b4c966aa96da
parente2695ccb9c8d16cfc41925ef9c780b79ba1cd25d
python: Fix issue with probes for JSONRPC connections

When opening a JSONRPC connection, the health probes
are incorrectly getting turned off for connections
that need probes.

In other words, when stream_or_pstream_needs_probes()
return non-zero, the probes are gettting disabled as
the probe interval is getting set to zero. This leads
to incorrect behavior such that probes are:

  - not getting turned off for unix: connections
  - getting turned off for tcp:/ssl: connections

The changes in this commit fix this issue.

Signed-off-by: Sumit Garg <sumit@extremenetworks.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
python/ovs/jsonrpc.py