Remove ixWebSocket

This commit is contained in:
Kilian committed 2022-09-04 00:50:49 +02:00
1 parent fbee417594
commit a820f7456a
123 files changed
+998 -12947

No files matched your search

-30
View File
@@ -1,30 +0,0 @@
/*
* IXExponentialBackoff.cpp
* Author: Benjamin Sergeant
* Copyright (c) 2017-2019 Machine Zone, Inc. All rights reserved.
*/
#include "IXExponentialBackoff.h"
#include <cmath>
namespace ix
{
uint32_t
calculateRetryWaitMilliseconds(uint32_t retryCount,
uint32_t maxWaitBetweenReconnectionRetries,
uint32_t minWaitBetweenReconnectionRetries)
{
uint32_t waitTime = (retryCount < 26) ? (std::pow(2, retryCount) * 100) : 0;
if (waitTime < minWaitBetweenReconnectionRetries) {
waitTime = minWaitBetweenReconnectionRetries;
}
if (waitTime > maxWaitBetweenReconnectionRetries || waitTime == 0) {
waitTime = maxWaitBetweenReconnectionRetries;
}
return waitTime;
}
} // namespace ix