eidheim / Simple-WebSocket-Server

A very simple, fast, multithreaded, platform independent WebSocket (WS) and WebSocket Secure (WSS) server and client library implemented using C++11, Boost.Asio and OpenSSL. Created to be an easy way to make WebSocket endpoints in C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't use wss client

CrackerHax opened this issue · comments

Got this error testing wss client

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
  what():  context: asio.ssl error
Aborted

$ ssh -V
OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016

$ dpkg -s libboost-dev | grep 'Version'
Version: 1.58.0.1ubuntu1

I'm having the same issue. Did you manage to fix it?

Nope I ended up using something else.

What system are you on @fatduckling ?

A backtrace would be useful as well, and maybe a minimal example that results in this exception.

I could not reproduce this error on an upgraded Ubuntu 16.04.01.

Hi @eidheim
I think the problem was with the cURL library. I removed package "libcurl4-openssl-dev" and installed "libcurl4-gnutls-dev" and now it works. I'm not sure whether this is the root cause of the issue, but switching the cURL packages to use gnutls for SSL seems to work.

apt-get install libcurl4-gnutls-dev