Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v11.4.5 #506

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
cmake_minimum_required(VERSION 3.4.1...3.17.2)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")

project(ixwebsocket LANGUAGES C CXX VERSION 11.4.4)
project(ixwebsocket LANGUAGES C CXX VERSION 11.4.5)

set (CMAKE_CXX_STANDARD 11)
set (CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_EXTENSIONS OFF)
set (CMAKE_EXPORT_COMPILE_COMMANDS yes)

add_compile_definitions(IX_WEBSOCKET_VERSION="${CMAKE_PROJECT_VERSION}")

option (BUILD_DEMO OFF)

if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
Expand Down
7 changes: 4 additions & 3 deletions ixwebsocket/IXDNSLookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace ix
DNSLookup::AddrInfoPtr DNSLookup::resolveUnCancellable(
std::string& errMsg, const CancellationRequest& isCancellationRequested)
{
errMsg = "no error";
errMsg = "unknown error";

// Maybe a cancellation request got in before the background thread terminated ?
if (isCancellationRequested())
Expand All @@ -97,12 +97,13 @@ namespace ix
DNSLookup::AddrInfoPtr DNSLookup::resolveCancellable(
std::string& errMsg, const CancellationRequest& isCancellationRequested)
{
errMsg = "no error";
errMsg = "unknown error";

// Can only be called once, otherwise we would have to manage a pool
// of background thread which is overkill for our usage.
if (_done)
{
errMsg = "programming error";
return nullptr; // programming error, create a second DNSLookup instance
// if you need a second lookup.
}
Expand Down Expand Up @@ -156,7 +157,7 @@ namespace ix
// We don't want to read or write into members variables of an object that could be
// gone, so we use temporary variables (res) or we pass in by copy everything that
// getAddrInfo needs to work.
std::string errMsg;
std::string errMsg = "unknown error";
auto res = getAddrInfo(hostname, port, errMsg);

if (auto lock = self.lock())
Expand Down
2 changes: 1 addition & 1 deletion ixwebsocket/IXSocketConnect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace ix
std::string& errMsg,
const CancellationRequest& isCancellationRequested)
{
errMsg = "no error";
errMsg = "unknown error";

socket_t fd = socket(address->ai_family, address->ai_socktype, address->ai_protocol);
if (fd < 0)
Expand Down
3 changes: 3 additions & 0 deletions ixwebsocket/IXSocketOpenSSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ namespace ix
/**
* Check whether a hostname matches a pattern
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
bool SocketOpenSSL::checkHost(const std::string& host, const char* pattern)
{
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
Expand All @@ -306,6 +308,7 @@ namespace ix

#endif
}
#pragma GCC diagnostic pop

bool SocketOpenSSL::openSSLCheckServerCert(SSL* ssl,
#if OPENSSL_VERSION_NUMBER < 0x10100000L
Expand Down
4 changes: 3 additions & 1 deletion ixwebsocket/IXWebSocketVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@

#pragma once

#define IX_WEBSOCKET_VERSION "11.4.4"
#ifndef IX_WEBSOCKET_VERSION
#define IX_WEBSOCKET_VERSION "unknown"
#endif
Loading