For streaming API, does server force disconnect client after some time? If true, then how long the time is?
Didn't find any documentation about this, but we found sometimes the client can't receive notification anymore.
My client keep re-connect to Salesforce around every 2min(110seconds):
2018/07/06 10:41:29.297785 Response Body: [{"clientId":"xxx","channel":"/meta/connect","successful":true}]
---reconnect call ---
2018/07/06 10:43:19.490729 Response Body: [{"clientId":"xxx","channel":"/meta/connect","successful":true}]
---reconnect call ---
2018/07/06 10:45:09.773423 Response Body: [{"clientId":"xxx","channel":"/meta/connect","successful":true}]
---reconnect call ---
2018/07/06 10:46:59.962616 Response Body: [{"clientId":"xx","channel":"/meta/connect","successful":true}]
---reconnect call ---
This looks good to keep the long-lived connection open, but sometimes, after serval hours(maybe 24hrs or more or less), i saw error like:
Cannot connect to bayeux Unknown error: Post https://ap1.salesforce.com/cometd/38.0: EOF
Tested in 2 different envs, only one env encountered this issue, another is fine? So is the error because of network or salesforce server get down at that moment? Or salesforce streaming API disconnect client for sometimes?