ws proxy_server / remote server close not forwarded to the client
This commit is contained in:
parent
521286ae88
commit
8607dc1a4a
@ -1 +1 @@
|
|||||||
7.3.1
|
7.3.2
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
All notable changes to this project will be documented in this file.
|
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
|
## [7.3.0] - 2019-11-15
|
||||||
|
|
||||||
- New ws command: `ws proxy_server`.
|
- New ws command: `ws proxy_server`.
|
||||||
|
@ -79,6 +79,7 @@ namespace ix
|
|||||||
std::cerr << "Closed connection"
|
std::cerr << "Closed connection"
|
||||||
<< " code " << msg->closeInfo.code << " reason "
|
<< " code " << msg->closeInfo.code << " reason "
|
||||||
<< msg->closeInfo.reason << std::endl;
|
<< msg->closeInfo.reason << std::endl;
|
||||||
|
webSocket->close(msg->closeInfo.code, msg->closeInfo.reason);
|
||||||
}
|
}
|
||||||
else if (msg->type == ix::WebSocketMessageType::Error)
|
else if (msg->type == ix::WebSocketMessageType::Error)
|
||||||
{
|
{
|
||||||
@ -88,7 +89,6 @@ namespace ix
|
|||||||
ss << "Wait time(ms): " << msg->errorInfo.wait_time << std::endl;
|
ss << "Wait time(ms): " << msg->errorInfo.wait_time << std::endl;
|
||||||
ss << "HTTP Status: " << msg->errorInfo.http_status << std::endl;
|
ss << "HTTP Status: " << msg->errorInfo.http_status << std::endl;
|
||||||
std::cerr << ss.str();
|
std::cerr << ss.str();
|
||||||
webSocket->close(msg->closeInfo.code, msg->closeInfo.reason);
|
|
||||||
}
|
}
|
||||||
else if (msg->type == ix::WebSocketMessageType::Message)
|
else if (msg->type == ix::WebSocketMessageType::Message)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user