File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
All changes to this project will be documented in this file.
3
3
4
+ ## [ 10.1.0] - 2020-07-29
5
+
6
+ (websocket client) heartbeat is not sent at the requested frequency (fix #232 )
7
+
4
8
## [ 10.0.3] - 2020-07-28
5
9
6
10
compiler warning fixes
Original file line number Diff line number Diff line change @@ -263,9 +263,10 @@ namespace ix
263
263
{
264
264
// compute lasting delay to wait for next ping / timeout, if at least one set
265
265
auto now = std::chrono::steady_clock::now ();
266
- lastingTimeoutDelayInMs = (int ) std::chrono::duration_cast<std::chrono::milliseconds>(
266
+ int timeSinceLastPingMs = (int ) std::chrono::duration_cast<std::chrono::milliseconds>(
267
267
now - _lastSendPingTimePoint)
268
268
.count ();
269
+ lastingTimeoutDelayInMs = (1000 * _pingIntervalSecs) - timeSinceLastPingMs;
269
270
}
270
271
271
272
#ifdef _WIN32
Original file line number Diff line number Diff line change 6
6
7
7
#pragma once
8
8
9
- #define IX_WEBSOCKET_VERSION "10.0.3 "
9
+ #define IX_WEBSOCKET_VERSION "10.1.0 "
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ namespace ix
200
200
}
201
201
else if (msg->type == ix::WebSocketMessageType::Pong)
202
202
{
203
- spdlog::info (" Received pong" );
203
+ spdlog::info (" Received pong {} " , msg-> str );
204
204
}
205
205
else
206
206
{
You can’t perform that action at this time.
0 commit comments