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

exception thrown in server start (boost related)

artemtarassov opened this issue · comments

I'm using boost 1_62, windows 10, running with VS 2013, deploy to win32.
When i do server.start(), the exception below is thrown.
boost_socket_acceptor.hpp: boost::system::error_code ec; this->get_service().open(this->get_implementation(), protocol, ec); boost::asio::detail::throw_error(ec, "open");
My code is just the server implementation. nothing else.
Client implementation works fine btw., i just can't make the server start.
Do you have any ideas?

Have you tried the v1.3.1 release? I'm curious if I have done some changes since the v1.3.1 release that have broken MSVC compilation somehow.

Also, does the ws_examples.cpp work? It might be that you are using a different port than 8080? Some ports might need administrator rights to bind to I guess.

I tried v1.31, tried boost 1_61, other ports, tried with VS 2015, and tested it on another machine runnig windows7. still have the problem.
Maybe it's somehow related to VS or some other settings. Any ideas?
I was not able to compile the tests, there were several linking errors, so i gave up. However, the client implementation works fine.
Here is the crash btw.:
screen shot 2017-08-05 at 20 35 10

Not sure what to do here as I do not use Windows. But it seems to be a boost on Windows issue if I'm not mistaken. Could it be the way you install boost?

The tests does not compile with MSVC, since MSVC is missing option to turn off access control (gcc/clang's -fno-access-control). In the future though, I see no reason why not to use clang on Windows, that is, when clang is stable for Windows.