Trivial cleanup

This commit is contained in:
louiz’
2016-10-31 01:39:35 +01:00
parent 911258bc65
commit 3e7c8ab4bc
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -292,7 +292,8 @@ void TCPSocketHandler::on_send()
// unconsting the content of s is ok, sendmsg will never modify it
msg_iov[msg.msg_iovlen].iov_base = const_cast<char*>(s.data());
msg_iov[msg.msg_iovlen].iov_len = s.size();
if (++msg.msg_iovlen == UIO_FASTIOV)
msg.msg_iovlen++;
if (msg.msg_iovlen == UIO_FASTIOV)
break;
}
ssize_t res = ::sendmsg(this->socket, &msg, MSG_NOSIGNAL);