Commit 3e7c8ab4 authored by louiz’'s avatar louiz’

Trivial cleanup

parent 911258bc
......@@ -14,7 +14,7 @@ public:
poller(poller),
socket(socket)
{}
virtual ~SocketHandler() {}
virtual ~SocketHandler() = default;
SocketHandler(const SocketHandler&) = delete;
SocketHandler(SocketHandler&&) = delete;
SocketHandler& operator=(const SocketHandler&) = delete;
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment