diff --git a/DOCKER_VERSION b/DOCKER_VERSION index 643916c0..eab246c0 100644 --- a/DOCKER_VERSION +++ b/DOCKER_VERSION @@ -1 +1 @@ -7.3.1 +7.3.2 diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index f8592f8b..633c9bee 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog All notable changes to this project will be documented in this file. +## [7.3.1] - 2019-11-16 + +- ws proxy_server / remote server close not forwarded to the client + ## [7.3.0] - 2019-11-15 - New ws command: `ws proxy_server`. diff --git a/ws/ws_proxy_server.cpp b/ws/ws_proxy_server.cpp index ed0289ca..f0ccd712 100644 --- a/ws/ws_proxy_server.cpp +++ b/ws/ws_proxy_server.cpp @@ -79,6 +79,7 @@ namespace ix std::cerr << "Closed connection" << " code " << msg->closeInfo.code << " reason " << msg->closeInfo.reason << std::endl; + webSocket->close(msg->closeInfo.code, msg->closeInfo.reason); } else if (msg->type == ix::WebSocketMessageType::Error) { @@ -88,7 +89,6 @@ namespace ix ss << "Wait time(ms): " << msg->errorInfo.wait_time << std::endl; ss << "HTTP Status: " << msg->errorInfo.http_status << std::endl; std::cerr << ss.str(); - webSocket->close(msg->closeInfo.code, msg->closeInfo.reason); } else if (msg->type == ix::WebSocketMessageType::Message) {