diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-04-16 07:47:00 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-04-17 07:34:37 +0200 |
commit | dc4ed5a7b59f1d5b4e4f7fb4b6e29ecaf5e6cc5c (patch) | |
tree | 29987586f7012a31c187de491edc99aea174473b /src/options.hpp | |
parent | 443d06f894751062da6d69238ce09f6fbfc27577 (diff) |
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 <sustrik@250bpm.com>
Diffstat (limited to 'src/options.hpp')
-rw-r--r-- | src/options.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |