From f1936eb65178f796d26a8d265697af8c19dce8cd Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Wed, 11 Apr 2012 20:18:34 -0700 Subject: 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 --- lib/stream-provider.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/stream-provider.h') 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. -- cgit v1.2.1