diff options
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/transport/udp_zero_copy_asio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/transport/udp_zero_copy_asio.cpp b/host/lib/transport/udp_zero_copy_asio.cpp index f8a222475..d6b3a8336 100644 --- a/host/lib/transport/udp_zero_copy_asio.cpp +++ b/host/lib/transport/udp_zero_copy_asio.cpp @@ -161,7 +161,7 @@ managed_recv_buffer::sptr udp_zero_copy_impl::get_recv_buff(void){ boost::uint8_t *recv_mem = new boost::uint8_t[MAX_DGRAM_SIZE]; //call recv() with timeout option - size_t num_bytes = _socket->receive(boost::asio::buffer(recv_mem, MIN_SOCK_BUFF_SIZE)); + size_t num_bytes = _socket->receive(boost::asio::buffer(recv_mem, MAX_DGRAM_SIZE)); //create a new managed buffer to house the data return managed_recv_buffer::sptr( |