From 8340c198618b892772d8627f066fe8c7d924c674 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 28 May 2010 13:22:56 -0700 Subject: fix: wrong size for buffer in recv --- host/lib/transport/udp_zero_copy_asio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/transport') 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( -- cgit v1.2.3