summaryrefslogtreecommitdiff
path: root/lib/stream-provider.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2012-04-11 20:18:34 -0700
committerEthan Jackson <ethan@nicira.com>2012-04-12 00:43:22 -0700
commitf1936eb65178f796d26a8d265697af8c19dce8cd (patch)
tree05616ee0958f35adcb6822354a74905a89f659b1 /lib/stream-provider.h
parentbceb55c8ba91af812bc61e1ebc54f367ad034157 (diff)
downloadopenvswitch-f1936eb65178f796d26a8d265697af8c19dce8cd.tar.gz
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/stream-provider.h')
-rw-r--r--lib/stream-provider.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/stream-provider.h b/lib/stream-provider.h
index 77d0a1060..3decb5a8a 100644
--- a/lib/stream-provider.h
+++ b/lib/stream-provider.h
@@ -54,6 +54,11 @@ struct stream_class {
/* Prefix for connection names, e.g. "tcp", "ssl", "unix". */
const char *name;
+ /* True if this stream needs periodic probes to verify connectivty. For
+ * streams which need probes, it can take a long time to notice the
+ * connection was dropped. */
+ bool needs_probes;
+
/* Attempts to connect to a peer. 'name' is the full connection name
* provided by the user, e.g. "tcp:1.2.3.4". This name is useful for error
* messages but must not be modified.
@@ -151,6 +156,11 @@ struct pstream_class {
/* Prefix for connection names, e.g. "ptcp", "pssl", "punix". */
const char *name;
+ /* True if this pstream needs periodic probes to verify connectivty. For
+ * pstreams which need probes, it can take a long time to notice the
+ * connection was dropped. */
+ bool needs_probes;
+
/* Attempts to start listening for stream connections. 'name' is the full
* connection name provided by the user, e.g. "ptcp:1234". This name is
* useful for error messages but must not be modified.