summaryrefslogtreecommitdiff
path: root/modules/io_codec/c++/io_peer.tmpl.hpp
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-07 14:53:52 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-07 14:53:52 +0200
commit5f6c71df18a65d5c4023caa08e08f493090c3721 (patch)
tree82b24be1fcb7bd59361e61d303ad3e12bf817ef8 /modules/io_codec/c++/io_peer.tmpl.hpp
parente4525015f88bcb7d9906a875210f759621f2b3c3 (diff)
wip
Diffstat (limited to 'modules/io_codec/c++/io_peer.tmpl.hpp')
-rw-r--r--modules/io_codec/c++/io_peer.tmpl.hpp4
1 files changed, 2 insertions, 2 deletions
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());
}