diff options
Diffstat (limited to 'modules/io_codec/c++')
-rw-r--r-- | modules/io_codec/c++/io_peer.hpp | 1 | ||||
-rw-r--r-- | modules/io_codec/c++/io_peer.tmpl.hpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/io_codec/c++/io_peer.hpp b/modules/io_codec/c++/io_peer.hpp index b998055..2fd7877 100644 --- a/modules/io_codec/c++/io_peer.hpp +++ b/modules/io_codec/c++/io_peer.hpp @@ -49,6 +49,7 @@ public: private: /// @unimplemented + /// This will be a mechanic which allows connecting the outbound connection natively to a pure conveyor setup. class peer_conveyor_feeder final : public conveyor_feeder<data<Outgoing, ContentEncoding>> { public: diff --git a/modules/io_codec/c++/io_peer.tmpl.hpp b/modules/io_codec/c++/io_peer.tmpl.hpp index d6d6364..f4f965f 100644 --- a/modules/io_codec/c++/io_peer.tmpl.hpp +++ b/modules/io_codec/c++/io_peer.tmpl.hpp @@ -89,7 +89,7 @@ template <typename Incoming, typename Outgoing, typename TransportEncoding, error_or<void> streaming_io_peer<Incoming, Outgoing, TransportEncoding, ContentEncoding, BufferT>::send(data<Outgoing, ContentEncoding> msg) { - bool restart_write = out_buffer_.read_segment_length() == 0; + bool restart_write = (out_buffer_.read_segment_length() == 0u); /* if (eov.is_error()) { @@ -97,7 +97,7 @@ error_or<void> streaming_io_peer<Incoming, Outgoing, TransportEncoding, ContentE } */ - if (restart_write) { + if (false && restart_write) { io_stream_->write(&out_buffer_.read(), out_buffer_.read_segment_length()); } |