From 90c907074c65bf9112c0a85341ebf18e811df3f8 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 1 Mar 2011 11:12:30 -0800 Subject: udp: return the managed recv buffer to the buffer queue on timeout --- host/lib/transport/udp_zero_copy.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(), _recv_frame_size, 0) ); + + this->handle_recv(mrb); //timeout: return the managed buffer to the queue } return managed_recv_buffer::sptr(); } -- cgit v1.2.3