diff options
author | Ethan Jackson <ethan@nicira.com> | 2012-04-11 20:18:34 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2012-04-12 00:43:22 -0700 |
commit | f1936eb65178f796d26a8d265697af8c19dce8cd (patch) | |
tree | 05616ee0958f35adcb6822354a74905a89f659b1 /lib/jsonrpc.c | |
parent | bceb55c8ba91af812bc61e1ebc54f367ad034157 (diff) |
stream: By default disable probing on unix sockets.
There isn't a lot of value in sending inactivity probes on unix
sockets. This patch changes the default to disable them.
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/jsonrpc.c')
-rw-r--r-- | lib/jsonrpc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c index fa3362d1..e95db8af 100644 --- a/lib/jsonrpc.c +++ b/lib/jsonrpc.c @@ -764,6 +764,10 @@ jsonrpc_session_open(const char *name) reconnect_set_passive(s->reconnect, true, time_msec()); } + if (!stream_or_pstream_needs_probes(name)) { + reconnect_set_probe_interval(s->reconnect, 0); + } + return s; } |