Skip to content

Commit 92db53c

Browse files
committed
(client) fix an overflow in the exponential back off code
1 parent 49865fe commit 92db53c

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

DOCKER_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.4.0
1+
7.4.1

docs/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [7.4.1] - 2019-12-02
5+
6+
- (client) fix an overflow in the exponential back off code
7+
48
## [7.4.0] - 2019-11-25
59

610
- (http client) Add support for multipart HTTP POST upload

ixwebsocket/IXExponentialBackoff.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace ix
1313
uint32_t calculateRetryWaitMilliseconds(uint32_t retry_count,
1414
uint32_t maxWaitBetweenReconnectionRetries)
1515
{
16-
uint32_t wait_time = std::pow(2, retry_count) * 100;
16+
uint32_t wait_time = (retry_count < 26) ? (std::pow(2, retry_count) * 100) : 0;
1717

1818
if (wait_time > maxWaitBetweenReconnectionRetries || wait_time == 0)
1919
{

ixwebsocket/IXWebSocketVersion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
#pragma once
88

9-
#define IX_WEBSOCKET_VERSION "7.4.0"
9+
#define IX_WEBSOCKET_VERSION "7.4.1"

0 commit comments

Comments
 (0)