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

I have use tcp client connect a server,but 'setkeepalive' failed. #405

Open
teahouse opened this issue Oct 17, 2018 · 1 comment
Open

I have use tcp client connect a server,but 'setkeepalive' failed. #405

teahouse opened this issue Oct 17, 2018 · 1 comment

Comments

@teahouse
Copy link

'setkeepalive' do not work.
tcp connection must be disconnected in second http's request.Please tell me that how to do it, Thanks very much.

@agentzh
Copy link
Member

agentzh commented Oct 17, 2018

@teahouse You should check the return values of the setkeepalive method call for more details. Maybe you just fail to read everything in the socket receive buffer before trying to put the connection into the pool.

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