Skip to content

Commit 4986b8b

Browse files
Fix intermittent data loss after creating new connections (#106)
1 parent 0d97d61 commit 4986b8b

File tree

4 files changed

+96
-94
lines changed

4 files changed

+96
-94
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Install apt-get dependencies
6565
run: |
6666
sudo apt-get install -y build-essential git python3-dev
67-
sudo apt-get install -y wget tar zlibc libssl-dev openssl cmake python-dev
67+
sudo apt-get install -y wget tar zlib1g-dev libssl-dev openssl cmake
6868
sudo apt-get clean -y
6969
- name: Install boost
7070
working-directory: ${{ github.workspace }}

src/ProxySettings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace aws { namespace iot { namespace securedtunneling { namespace settings
2626
std::int32_t const DEFAULT_TCP_CONNECTION_RETRY_COUNT = -1;
2727

2828
char const * const KEY_TCP_CONNECTION_RETRY_DELAY_MS = "tunneling.proxy.tcp.connection_retry_delay_ms";
29-
std::uint32_t const DEFAULT_TCP_CONNECTION_RETRY_DELAY_MS = 1000;
29+
std::uint32_t const DEFAULT_TCP_CONNECTION_RETRY_DELAY_MS = 2500;
3030

3131
char const * const KEY_MESSAGE_MAX_PAYLOAD_SIZE = "tunneling.proxy.message.max_payload_size";
3232
//if this is too small with respect to the peer, this client will overflow
@@ -39,7 +39,7 @@ namespace aws { namespace iot { namespace securedtunneling { namespace settings
3939
std::uint32_t const DEFAULT_MAX_ACTIVE_CONNECTIONS = 128;
4040

4141
char const * const KEY_WEB_SOCKET_PING_PERIOD_MS = "tunneling.proxy.websocket.ping_period_ms";
42-
std::uint32_t const DEFAULT_WEB_SOCKET_PING_PERIOD_MS = 5000;
42+
std::uint32_t const DEFAULT_WEB_SOCKET_PING_PERIOD_MS = 20000;
4343

4444
char const * const KEY_WEB_SOCKET_CONNECT_RETRY_DELAY_MS = "tunneling.proxy.websocket.retry_delay_ms";
4545
std::uint32_t const DEFAULT_WEB_SOCKET_CONNECT_RETRY_DELAY_MS = 2500;

0 commit comments

Comments
 (0)