(websocket client) improve the error message when connecting to a non websocket server
This commit is contained in:
parent
cae016564e
commit
862f8ea2d4
@ -1,6 +1,22 @@
|
|||||||
# 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.5.4] - 2019-12-16
|
||||||
|
|
||||||
|
(websocket client) improve the error message when connecting to a non websocket server
|
||||||
|
|
||||||
|
Before:
|
||||||
|
|
||||||
|
```
|
||||||
|
Connection error: Got bad status connecting to example.com:443, status: 200, HTTP Status line: HTTP/1.1 200 OK
|
||||||
|
```
|
||||||
|
|
||||||
|
After:
|
||||||
|
|
||||||
|
```
|
||||||
|
Connection error: Expecting status 101 (Switching Protocol), got 200 status connecting to example.com:443, HTTP Status line: HTTP/1.1 200 OK
|
||||||
|
```
|
||||||
|
|
||||||
## [7.5.3] - 2019-12-12
|
## [7.5.3] - 2019-12-12
|
||||||
|
|
||||||
(server) attempt at fixing #131 by using blocking writes in server mode
|
(server) attempt at fixing #131 by using blocking writes in server mode
|
||||||
|
@ -178,8 +178,8 @@ namespace ix
|
|||||||
if (status != 101)
|
if (status != 101)
|
||||||
{
|
{
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "Got bad status connecting to " << host << ":" << port << ", status: " << status
|
ss << "Expecting status 101 (Switching Protocol), got " << status
|
||||||
<< ", HTTP Status line: " << line;
|
<< " status connecting to " << host << ":" << port << ", HTTP Status line: " << line;
|
||||||
return WebSocketInitResult(false, status, ss.str());
|
return WebSocketInitResult(false, status, ss.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,4 +6,4 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define IX_WEBSOCKET_VERSION "7.5.3"
|
#define IX_WEBSOCKET_VERSION "7.5.4"
|
||||||
|
Loading…
Reference in New Issue
Block a user