refactor
All checks were successful
Blockstorage/repertory/pipeline/head This commit looks good
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-09-21 15:50:44 -05:00
parent 018bbe626e
commit 44bd4fce20

View File

@@ -131,7 +131,7 @@ auto packet_server::handshake(std::shared_ptr<connection> conn) const -> bool {
conn->socket,
boost::asio::buffer(&conn->buffer[total_read],
conn->buffer.size() - total_read));
if (bytes_read <= 0) {
if (bytes_read == 0) {
throw std::runtime_error("0 bytes read");
}