Update event poll to work with expected server changes. Timeout now behaves like status 502 (which is being removed by LL). Keeping 502 handling as well to maintain opensim support.

This commit is contained in:
Shyotl
2019-04-08 15:18:10 -05:00
parent af8bb2a992
commit e2cc2d600b
2 changed files with 9 additions and 5 deletions

View File

@@ -183,10 +183,15 @@ namespace
{
if (mDone) return;
// A HTTP_BAD_GATEWAY (502) error is our standard timeout response
// we get this when there are no events.
if ( mStatus == HTTP_BAD_GATEWAY )
{
// Timeout
if (is_internal_http_error_that_warrants_a_retry(mStatus))
{ // A standard timeout response we get this when there are no events.
mErrorCount = 0;
makeRequest();
}
else if ( mStatus == HTTP_BAD_GATEWAY )
{ // LEGACY: A HTTP_BAD_GATEWAY (502) error is our standard timeout response
// we get this when there are no events.
mErrorCount = 0;
makeRequest();
}