Skip to content

Add configurable device timeout - #66

Open
scgbckbone wants to merge 1 commit into
Coldcard:masterfrom
scgbckbone:configurable-device-timeout
Open

Add configurable device timeout#66
scgbckbone wants to merge 1 commit into
Coldcard:masterfrom
scgbckbone:configurable-device-timeout

Conversation

@scgbckbone

@scgbckbone scgbckbone commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Allow the default send_recv timeout to be configured per ColdcardDevice, while retaining the existing 3000 ms default. The CKCC_DEFAULT_TIMEOUT environment setting allows process-level configuration for runners that spawn the client in child processes. Needed for our --multiproc test runner i firmware

Explicit per-call timeout values, including None for no timeout, remain unchanged.

@scgbckbone
scgbckbone force-pushed the configurable-device-timeout branch from cce9ec5 to a6d64c3 Compare August 26, 2026 07:52
Comment thread ckcc/client.py
assert self.dev.get_serial_number_string() == self.serial

def send_recv(self, msg, expect_errors=False, verbose=0, timeout=3000, encrypt=True):
def send_recv(self, msg, expect_errors=False, verbose=0, timeout=DEFAULT_TIMEOUT, encrypt=True):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be better to have a "unset" value here as the default for the param

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants