On error while doing a client handshake, additionally display port number next to the host name

This commit is contained in:
Benjamin Sergeant 2019-09-17 12:08:52 -07:00
parent 354c9b412e
commit 20ce498d23
5 changed files with 9 additions and 5 deletions

View File

@ -1 +1 @@
6.2.0
6.2.1

View File

@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.
## [6.2.1] - 2019-09-17
- On error while doing a client handshake, additionally display port number next to the host name
## [6.2.0] - 2019-09-09
- websocket and http server: server does not close the bound client socket in many cases

View File

@ -173,7 +173,7 @@ namespace ix
{
std::stringstream ss;
ss << "Expecting HTTP/1.1, got " << httpVersion << ". "
<< "Rejecting connection to " << host
<< "Rejecting connection to " << host << ":" << port
<< ", status: " << status
<< ", HTTP Status line: " << line;
return WebSocketInitResult(false, status, ss.str());
@ -183,7 +183,7 @@ namespace ix
if (status != 101)
{
std::stringstream ss;
ss << "Got bad status connecting to " << host
ss << "Got bad status connecting to " << host << ":" << port
<< ", status: " << status
<< ", HTTP Status line: " << line;
return WebSocketInitResult(false, status, ss.str());

View File

@ -6,4 +6,4 @@
#pragma once
#define IX_WEBSOCKET_VERSION "6.2.0"
#define IX_WEBSOCKET_VERSION "6.2.1"