clickhouse-cpp icon indicating copy to clipboard operation
clickhouse-cpp copied to clipboard

Add recv/send timeouts to socket

Open horoshenkiy opened this issue 3 years ago • 1 comments

When I was working with the library, I found the following behavior: when my application is connecting to the clickhouse server, it may stick forever due to connection problems.

A connection to the server can be established, but nothing can be read from the socket because you try to connect to another running application in your system.

For resolving this problem I added receive and send timeouts to socket.

horoshenkiy avatar Jul 30 '22 16:07 horoshenkiy

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 30 '22 16:07 CLAassistant

Hello! We faced this problem in our project and this PR is the solution. Do you need any help to merge?

belousotroll avatar Aug 22 '22 06:08 belousotroll

Hello! We faced this problem in our project and this PR is the solution. Do you need any help to merge?

Yes, I don’t have rights for merging

horoshenkiy avatar Aug 23 '22 01:08 horoshenkiy

@horoshenkiy I don't have rights either. I mean do you know anything I can help with? PR is 24 days old. Is the only way to wait for a contributor?

belousotroll avatar Aug 24 '22 03:08 belousotroll