diff options
author | Josh Blum <josh@joshknows.com> | 2011-03-01 11:12:30 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-03-01 11:12:30 -0800 |
commit | c69d9c0205d897923b07ac77cb87633fb4925b53 (patch) | |
tree | 1e5a68da906b2d66db1635cadca65f5459d38172 /host | |
parent | f1996ccf3fd211eb102468e2095caeaf6d603d8c (diff) | |
download | uhd-c69d9c0205d897923b07ac77cb87633fb4925b53.tar.gz uhd-c69d9c0205d897923b07ac77cb87633fb4925b53.tar.bz2 uhd-c69d9c0205d897923b07ac77cb87633fb4925b53.zip |
udp: return the managed recv buffer to the buffer queue on timeout
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/transport/udp_zero_copy.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/transport/udp_zero_copy.cpp b/host/lib/transport/udp_zero_copy.cpp index dda3bb547..5810f441c 100644 --- a/host/lib/transport/udp_zero_copy.cpp +++ b/host/lib/transport/udp_zero_copy.cpp @@ -196,6 +196,8 @@ public: if (wait_for_recv_ready(_sock_fd, timeout)) return mrb->get_new( ::recv(_sock_fd, mrb->cast<char *>(), _recv_frame_size, 0) ); + + this->handle_recv(mrb); //timeout: return the managed buffer to the queue } return managed_recv_buffer::sptr(); } |