Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
CometD Long Polling takes longer than timeout value #837
I have a timeout set for cometD long polling as 60000ms (60 seconds). And client is configured to have a socketTimeout as 62000ms (62 seconds). We are seeing socketTimeout in some cases, where our long polling client goes above 60000ms. Am I missing something here ? How can the socketTimeout be calculated to ensure we do not get a timeout via socket in normal cases.
The server should always timeout at 60 seconds. The client may see more than that because of network roundtrips, so perhaps you have a really bad network?
Do you have DEBUG logs that show this behavior?