Browse Source

next try

pull/1/head
Volker Birk 2 years ago
parent
commit
a787cd5d9c
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      webserver.cc

+ 6
- 2
webserver.cc View File

@ -231,8 +231,12 @@ the_end:
void Webserver::runner(Webserver *me)
{
boost::asio::socket_base::reuse_address option(false);
me->_acceptor.set_option(option);
#ifdef WIN32
typedef
boost::asio::detail::socket_option::boolean<BOOST_ASIO_OS_DEF(SOL_SOCKET),
SO_EXCLUSIVEADDRUSE> excluse_address;
_acceptor.set_option(excluse_address(true));
#endif
while (me->_running)
{


Loading…
Cancel
Save