-
Notifications
You must be signed in to change notification settings - Fork 180
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
read_timeout option ignored #198
Comments
For reference, this is how the Ruby version does it: I don't think that translates easily into a single line with Python. |
I also encountered this issue. I'm working on a fix for this. I think in the meantime the read_timeout parameter should be removed. It is confusing for users who set this parameter to something other than 600 and then see that it doesn't change anything. |
@HaymanLiron That's great, thank you for your help! |
I recently also hit this issue. My use case requires two timeouts, one for establishing connection with Vertica and one for waiting to query response. When the Vertica node is healthy, there is no reason to have 2 timeouts but when client tries to connect to node with some issue (TCP socket still open but Vertica node does not respond to it) it is more than useful. And yes, we hit this unlikely scenario several times during HW malfunction. @sitingren Are there any plans to support two timeouts? @HaymanLiron Any progress with implementation of the fix? How exactly do you plan to add support for read_timeout? Do you preserve connection_timeout? |
@pcerny I agree to use existing As of today, the 'connection_timeout' option is actually setting socket timeout, which means it sets the maximum wait time for:
Therefore, the 'connection_timeout' option acts on both We propose to have the following two timeouts:
They may intersect with the socket timeout and increase the complexity. As far as I know, there are timeout decorator tools that can be utilized to wrap functions and achieve the goal of those timeouts somewhat. We'll definitely clear up misunderstandings about existing parameters soon, but adding new timeouts might not be our top-priority task. |
While debugging another timeout issue, I noticed read_timeout isn't used anywhere in the code:
https://github.com/uber/vertica-python/search?q=read_timeout&type=Code
(it's only setting the default value, but the option isn't used anywhere and the other mention is in the README).
The text was updated successfully, but these errors were encountered: