diff options
author | Brian Orr <brian.orr@gmail.com> | 2017-08-09 17:35:21 -0700 |
---|---|---|
committer | Brian Orr <brian.orr@gmail.com> | 2017-08-09 17:35:21 -0700 |
commit | ff794c230e8f5215f5347b2d6903779fe8a2a9b3 (patch) | |
tree | 25dbc389565c97f89a638813293916382e002b28 /gr-blocks/lib/socket_pdu_impl.h | |
parent | 811bee8c54bdca5c53c2ccbc6ef6d1bbca55eaae (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.h | 1 |
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 { |