remove unnecessary std::functions from socket_pool