I’m using the C# client library to consume a stream (Nick Halstead’s Google Employees stream if it matters).
I left the config settings as per the sample application:
config.Timeout = 20000;
config.AutoReconnect = true;
config.MaxRetries = 10;
However, my application only ran for ~5 minutes until a DatasiftStreamException was thrown (The connection to the DatasiftStream timed out). 20 seconds seems very long, but it is not long enough.
I have increased the timeout to 60 seconds, and it has now been running for over an hour, but it remains to be seen if this is enough.
My application needs to run 24/7, and whilst I am happy to have long timeouts and retries, this doesn’t seem right.
My question is, what is the recommended timeout?