Added
Link Here
|
1 |
https://github.com/zaphoyd/websocketpp/issues/794 |
2 |
|
3 |
--- libs/websocketpp/websocketpp/transport/asio/connection.hpp.orig 2016-10-28 19:20:12 UTC |
4 |
+++ libs/websocketpp/websocketpp/transport/asio/connection.hpp |
5 |
@@ -296,7 +296,7 @@ class connection : public config::socket_type::socket_ |
6 |
*/ |
7 |
timer_ptr set_timer(long duration, timer_handler callback) { |
8 |
timer_ptr new_timer = lib::make_shared<boost::asio::deadline_timer>( |
9 |
- lib::ref(*m_io_service), |
10 |
+ *m_io_service, |
11 |
boost::posix_time::milliseconds(duration) |
12 |
); |
13 |
|
14 |
@@ -423,7 +423,7 @@ class connection : public config::socket_type::socket_ |
15 |
|
16 |
if (config::enable_multithreading) { |
17 |
m_strand = lib::make_shared<boost::asio::strand>( |
18 |
- lib::ref(*io_service)); |
19 |
+ *io_service); |
20 |
|
21 |
m_async_read_handler = m_strand->wrap(lib::bind( |
22 |
&type::handle_async_read, get_shared(),lib::placeholders::_1, |
23 |
--- libs/websocketpp/websocketpp/transport/asio/endpoint.hpp.orig 2016-10-28 19:20:12 UTC |
24 |
+++ libs/websocketpp/websocketpp/transport/asio/endpoint.hpp |
25 |
@@ -184,7 +184,7 @@ class endpoint : public config::socket_type { (public) |
26 |
m_io_service = ptr; |
27 |
m_external_io_service = true; |
28 |
m_acceptor = lib::make_shared<boost::asio::ip::tcp::acceptor>( |
29 |
- lib::ref(*m_io_service)); |
30 |
+ *m_io_service); |
31 |
|
32 |
m_state = READY; |
33 |
ec = lib::error_code(); |
34 |
@@ -610,7 +610,7 @@ class endpoint : public config::socket_type { (public) |
35 |
*/ |
36 |
void start_perpetual() { |
37 |
m_work = lib::make_shared<boost::asio::io_service::work>( |
38 |
- lib::ref(*m_io_service) |
39 |
+ *m_io_service |
40 |
); |
41 |
} |
42 |
|
43 |
@@ -776,7 +776,7 @@ class endpoint : public config::socket_type { (public) |
44 |
// Create a resolver |
45 |
if (!m_resolver) { |
46 |
m_resolver = lib::make_shared<boost::asio::ip::tcp::resolver>( |
47 |
- lib::ref(*m_io_service)); |
48 |
+ *m_io_service); |
49 |
} |
50 |
|
51 |
std::string proxy = tcon->get_proxy(); |
52 |
--- libs/websocketpp/websocketpp/transport/asio/security/none.hpp.orig 2016-10-28 19:20:12 UTC |
53 |
+++ libs/websocketpp/websocketpp/transport/asio/security/none.hpp |
54 |
@@ -167,7 +167,7 @@ class connection : public lib::enable_shared_from_this |
55 |
} |
56 |
|
57 |
m_socket = lib::make_shared<boost::asio::ip::tcp::socket>( |
58 |
- lib::ref(*service)); |
59 |
+ *service); |
60 |
|
61 |
m_state = READY; |
62 |
|