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 1be3b8f4b1
commit f7a12f52f8
5 changed files with 9 additions and 5 deletions

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"