From dc4ed5a7b59f1d5b4e4f7fb4b6e29ecaf5e6cc5c Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 16 Apr 2012 07:47:00 +0200 Subject: XS_SURVEY_TIMEOUT socket option added. It can be used to timeout the survey. Value is in milliseconds and -1 means infinite (default). Signed-off-by: Martin Sustrik --- src/options.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/options.hpp') diff --git a/src/options.hpp b/src/options.hpp index fac6084..805f793 100644 --- a/src/options.hpp +++ b/src/options.hpp @@ -98,6 +98,9 @@ namespace xs // Filter ID to be used with subscriptions and unsubscriptions. int filter; + // Timeout for the survey in milliseconds. -1 means infinite. + int survey_timeout; + // If true, session reads all the pending messages from the pipe and // sends them to the network when socket is closed. bool delay_on_close; -- cgit v1.2.3