Skip to content

Fix readline_channel crash and None return on default timeout#2622

Merged
kubernetes-prow[bot] merged 2 commits into
kubernetes-client:masterfrom
sophotechlabs:fix/ws-readline-default-timeout
Jul 7, 2026
Merged

Fix readline_channel crash and None return on default timeout#2622
kubernetes-prow[bot] merged 2 commits into
kubernetes-client:masterfrom
sophotechlabs:fix/ws-readline-default-timeout

Conversation

@archy-rock3t-cloud

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it:

With the default timeout, readline_channel converted None to float("inf") and crashed in update() when it reached select.poll().poll(). An infinite timeout now maps to a blocking poll, and an expired finite timeout returns '' or b'' like the other read methods instead of None.

Which issue(s) this PR fixes:

Fixes #2621

Does this PR introduce a user-facing change?

Fix readline_channel, readline_stdout and readline_stderr crashing with OverflowError when using the default timeout, and returning None when a timeout expires.

Signed-off-by: Artem Muterko <artem@sopho.tech>
Signed-off-by: Artem Muterko <artem@sopho.tech>
@kubernetes-prow kubernetes-prow Bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 3, 2026
@kubernetes-prow kubernetes-prow Bot requested review from fabianvf and yliaog July 3, 2026 14:37
@yliaog

yliaog commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

thanks for the PR

/lgtm
/approve

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 7, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: archy-rock3t-cloud, yliaog

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 7, 2026
@kubernetes-prow kubernetes-prow Bot merged commit 8a16f86 into kubernetes-client:master Jul 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

readline_channel crashes with OverflowError when using the default timeout

2 participants