summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-03-01 11:12:30 -0800
committerNick Foster <nick@nerdnetworks.org>2011-03-01 18:11:08 -0800
commit90c907074c65bf9112c0a85341ebf18e811df3f8 (patch)
tree5ea411ca5055878c1bf41ed16380382b7be6cbec /host
parent6b4a9212da7eb78112b575d47b5ecafebdf5f866 (diff)
downloaduhd-90c907074c65bf9112c0a85341ebf18e811df3f8.tar.gz
uhd-90c907074c65bf9112c0a85341ebf18e811df3f8.tar.bz2
uhd-90c907074c65bf9112c0a85341ebf18e811df3f8.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.cpp2
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();
}