taosdata / taosdata/taos-connector-python

possible to set timeout on websocket connection?

Open
#349 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
61
Forks
17
PR merge metrics
No merged PRs in 30d

Description

I need to make my software robust to loss in internet connection. Therefore I would like to set a shorter timeout, such as 2 seconds, to the websocket requests. Currently the timeout is very long, and this causes the whole program to halt while waiting. It is preferable to fail fast so I can handle it.
I cannot see in the documentation how to alter the timeout.

Thank you

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by locating the websocket connection and timeout handling in the Python connector, then check the existing documentation for connection options. Done means callers can set a shorter timeout, such as two seconds, and receive a failure they can handle instead of waiting for the current long timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.