Skip to content

Commit

Permalink
Add work for listen_socket
Browse files Browse the repository at this point in the history
  • Loading branch information
sdamm committed Sep 10, 2018
1 parent 634d131 commit ea75d74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/asio/ssl/dtls/acceptor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "asio/ssl/error.hpp"
#include "asio/error_code.hpp"
#include "asio/ssl/dtls/context.hpp"
#include "asio/executor_work_guard.hpp"


namespace asio {
Expand Down Expand Up @@ -755,6 +756,7 @@ class acceptor
, ah_(std::move(ah))
, sock_(sock)
, buffer_(buffer)
, work_(acc.sock_.get_executor())
{
}

Expand Down Expand Up @@ -802,6 +804,7 @@ class acceptor
AcceptHandler ah_;
socket<DatagramSocketType> &sock_;
asio::mutable_buffer buffer_;
asio::executor_work_guard<executor_type> work_;
};


Expand Down

0 comments on commit ea75d74

Please sign in to comment.