~singpolyma/biboumi

3e7c8ab4bc1ea15f02dbeee51ca8894bdd70eeab — louiz’ 7 years ago 911258b
Trivial cleanup
2 files changed, 3 insertions(+), 2 deletions(-)

M louloulibs/network/socket_handler.hpp
M louloulibs/network/tcp_socket_handler.cpp
M louloulibs/network/socket_handler.hpp => louloulibs/network/socket_handler.hpp +1 -1
@@ 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;

M louloulibs/network/tcp_socket_handler.cpp => louloulibs/network/tcp_socket_handler.cpp +2 -1
@@ 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);