diff options
author | louiz’ <louiz@louiz.org> | 2016-10-20 19:32:20 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-10-20 19:32:20 +0200 |
commit | ce06c25e93183282be42ab79bfed2ab7c02791ec (patch) | |
tree | ebb9d3c98d641d7a7af1191df72cb72cd801221c /louloulibs/network | |
parent | 6b4d2e8e3ea6a019778624106b7a839d875152cd (diff) | |
download | biboumi-ce06c25e93183282be42ab79bfed2ab7c02791ec.tar.gz biboumi-ce06c25e93183282be42ab79bfed2ab7c02791ec.tar.bz2 biboumi-ce06c25e93183282be42ab79bfed2ab7c02791ec.tar.xz biboumi-ce06c25e93183282be42ab79bfed2ab7c02791ec.zip |
Very little optimization by using a simpler scope_guard when possible
The version with the vector, that can be disabled etc, is “very” slow, so we
use unique_ptr when we don’t need to disable it, and when it only contains
one function
Diffstat (limited to 'louloulibs/network')
-rw-r--r-- | louloulibs/network/tcp_socket_handler.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/louloulibs/network/tcp_socket_handler.cpp b/louloulibs/network/tcp_socket_handler.cpp index 967fefe..ca267cd 100644 --- a/louloulibs/network/tcp_socket_handler.cpp +++ b/louloulibs/network/tcp_socket_handler.cpp @@ -103,8 +103,6 @@ void TCPSocketHandler::connect(const std::string& address, const std::string& po this->port = port; this->use_tls = tls; - utils::ScopeGuard sg; - struct addrinfo* addr_res; if (!this->connecting) |