summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/socket_pdu_impl.h
diff options
context:
space:
mode:
authorBrian Orr <brian.orr@gmail.com>2017-08-09 17:35:21 -0700
committerBrian Orr <brian.orr@gmail.com>2017-08-09 17:35:21 -0700
commitff794c230e8f5215f5347b2d6903779fe8a2a9b3 (patch)
tree25dbc389565c97f89a638813293916382e002b28 /gr-blocks/lib/socket_pdu_impl.h
parent811bee8c54bdca5c53c2ccbc6ef6d1bbca55eaae (diff)
Fix invalid Asio buffer usage in tcp_connection
Asio requires that the underlying buffer passed to `async_write()` remain valid valid until the handler was called. The previous version was allocating a vector on the stack which gets destroyed once the `send()` method returns. Added a unit test for TCP server.
Diffstat (limited to 'gr-blocks/lib/socket_pdu_impl.h')
-rw-r--r--gr-blocks/lib/socket_pdu_impl.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gr-blocks/lib/socket_pdu_impl.h b/gr-blocks/lib/socket_pdu_impl.h
index e45f6d4463..1df99fdeff 100644
--- a/gr-blocks/lib/socket_pdu_impl.h
+++ b/gr-blocks/lib/socket_pdu_impl.h
@@ -24,7 +24,6 @@
#define INCLUDED_BLOCKS_SOCKET_PDU_IMPL_H
#include <gnuradio/blocks/socket_pdu.h>
-#include "stream_pdu_base.h"
#include "tcp_connection.h"
namespace gr {