Skip to content

Commit

Permalink
Connection::write doesn't send the entire buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ILikePizza555 committed Dec 7, 2018
1 parent 949b80d commit 789103e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sockets/Connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ namespace sockets {

try {
std::copy(begin, end, _buffer.begin());
ssize_t bytes = _socket.send(_buffer, 0, 0);
ssize_t bytes = _socket.send(_buffer, distance, 0, 0);
return static_cast<size_t>(bytes);
}
catch (SocketWriteError& e)
Expand Down

0 comments on commit 789103e

Please sign in to comment.