ws proxy_server / remote server close not forwarded to the client
This commit is contained in:
		| @@ -1 +1 @@ | ||||
| 7.3.1 | ||||
| 7.3.2 | ||||
|   | ||||
| @@ -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`. | ||||
|   | ||||
| @@ -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) | ||||
|                 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user