Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win10,程序开启自启,连接Redis时阻塞(偶现) #256

Open
smartCharle opened this issue Dec 17, 2021 · 1 comment
Open

win10,程序开启自启,连接Redis时阻塞(偶现) #256

smartCharle opened this issue Dec 17, 2021 · 1 comment

Comments

@smartCharle
Copy link

        pool_.reset(new acl::redis_client_pool(addr, maxConn));	
            if (!pool_->aliving())
	{
		acl_msg_error("pool not aliving");
		return false;
	}

	acl_msg_info("%s: created pool", __FUNCTION__);

	if(param_.connTimeout_ > 0 && param_.reqTimeout_ > 0)
	{
		acl_msg_info("%s: set timeout %d,%d", __FUNCTION__, param_.connTimeout_, param_.reqTimeout_);
		pool_->set_timeout(param_.connTimeout_, param_.reqTimeout_);
	}

	auto client = pool_->peek();
	if(nullptr == client)
	{
		acl_msg_error("error peek client");
		return false;
	}
	acl_msg_info("peeked client");
@zhengshuxin
Copy link
Member

建立使用 redis_client_cluster 做为通信类试一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants