pan3793 commented on code in PR #7300:
URL: https://github.com/apache/kyuubi/pull/7300#discussion_r2772053587
##########
python/pyhive/hive.py:
##########
@@ -236,6 +240,8 @@ def __init__(
if auth is None:
auth = 'NONE'
socket = thrift.transport.TSocket.TSocket(host, port)
+ if connection_timeout:
+ socket.setTimeout(connection_timeout)
Review Comment:
In Java, a socket can have different `connectTimeout`, `readTimeout`, and
`writeTimeout` values. Does Python have an equivalent? Generally, we want a
small `connectTimeout`, and long `readTimeout` and `writeTimeout`, so it can
fail fast on connecting dead server and failover to health one, if it has
multiple server instances
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]