Skip to content

Commit 81be970

Browse files
committed
(ws commands) in websocket proxy, disable automatic reconnections + in Dockerfile, use alpine 3.11
1 parent 5222190 commit 81be970

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:edge as build
1+
FROM alpine:3.11 as build
22

33
RUN apk add --no-cache gcc g++ musl-dev linux-headers cmake openssl-dev
44
RUN apk add --no-cache make
@@ -16,7 +16,7 @@ WORKDIR /opt
1616
USER app
1717
RUN [ "make", "ws_install" ]
1818

19-
FROM alpine:edge as runtime
19+
FROM alpine:3.11 as runtime
2020

2121
RUN apk add --no-cache libstdc++
2222
RUN apk add --no-cache strace

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.6.1] - 2019-12-20
5+
6+
(ws commands) in websocket proxy, disable automatic reconnections + in Dockerfile, use alpine 3.11
7+
48
## [7.6.0] - 2019-12-19
59

610
(cobra) Add TLS options to all cobra commands and classes. Add example to the doc.

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.5.8"
9+
#define IX_WEBSOCKET_VERSION "7.6.1"

ws/ws_proxy_server.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace ix
6161

6262
// Server connection
6363
state->webSocket().setOnMessageCallback([webSocket, state, verbose](
64-
const WebSocketMessagePtr& msg) {
64+
const WebSocketMessagePtr& msg) {
6565
if (msg->type == ix::WebSocketMessageType::Open)
6666
{
6767
std::cerr << "New connection" << std::endl;
@@ -120,6 +120,7 @@ namespace ix
120120
std::string url(remoteUrl);
121121
url += msg->openInfo.uri;
122122
state->webSocket().setUrl(url);
123+
state->webSocket().disableAutomaticReconnection();
123124
state->webSocket().start();
124125

125126
// we should sleep here for a bit until we've established the

0 commit comments

Comments
 (0)