diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-28 13:22:56 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-28 13:22:56 -0700 |
commit | 8340c198618b892772d8627f066fe8c7d924c674 (patch) | |
tree | 2f7311e07e4d23e2815e69ae1eb8b977f10e5e09 /host/lib/transport | |
parent | 4eff47a4b66eff61feffe6498b9ecebef94dc6b9 (diff) | |
download | uhd-8340c198618b892772d8627f066fe8c7d924c674.tar.gz uhd-8340c198618b892772d8627f066fe8c7d924c674.tar.bz2 uhd-8340c198618b892772d8627f066fe8c7d924c674.zip |
fix: wrong size for buffer in recv
Diffstat (limited to 'host/lib/transport')
-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( |