Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit dc7a6ca

Browse files
authored
Merge pull request #8 from octoenergy/rebase-to-294
Add timeout hack
2 parents a25708a + 59636fa commit dc7a6ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/databricks/sql/thrift_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ def __init__(
206206

207207
# HACK!
208208
timeout = THRIFT_SOCKET_TIMEOUT or kwargs.get("_socket_timeout", DEFAULT_SOCKET_TIMEOUT)
209-
logger.info(f"Setting timeout HACK! to {timeout}")
210-
# setTimeout defaults to 15 minutes and is expected in ms
209+
logger.info(f"Setting timeout HACK! to {timeout} ms")
211210

211+
# setTimeout defaults to 15 minutes and is expected in ms
212212
self._transport.setTimeout(timeout and (float(timeout) * 1000.0))
213213

214214
self._transport.setCustomHeaders(dict(http_headers))

0 commit comments

Comments
 (0)