face: use async_wait operation instead of async_read with null_buffers
Change-Id: I2914e7f8fbd1b9a9e1fa8113d53700e7d6184464
diff --git a/daemon/face/ethernet-transport.cpp b/daemon/face/ethernet-transport.cpp
index a76b0b6..bc496d6 100644
--- a/daemon/face/ethernet-transport.cpp
+++ b/daemon/face/ethernet-transport.cpp
@@ -147,8 +147,8 @@
void
EthernetTransport::asyncRead()
{
- m_socket.async_read_some(boost::asio::null_buffers(),
- [this] (const auto& e, auto) { this->handleRead(e); });
+ m_socket.async_wait(boost::asio::posix::stream_descriptor::wait_read,
+ [this] (const auto& e) { this->handleRead(e); });
}
void