Skip to content

gh-148594: Clear OpenSSL error queue before SSL read/write - #148597

Closed
ashm-dev wants to merge 4 commits into
python:mainfrom
ashm-dev:gh-148594
Closed

ashm-dev wants to merge 4 commits into
python:mainfrom
ashm-dev:gh-148594

Conversation

@ashm-dev

@ashm-dev ashm-dev commented Apr 15, 2026 •

Copy link
Copy Markdown
Contributor

@picnixz

picnixz commented Apr 15, 2026

Copy link
Copy Markdown
Member

Serhiy asked the OP whether they wanted to take the PR. I'm closing it because they didn't get the time to reply.

@picnixz picnixz closed this Apr 15, 2026
@picnixz

picnixz commented Apr 15, 2026

Copy link
Copy Markdown
Member

In addition, I do not want the tests being written using ctypes. It's incorrect to try to test this like that. We should just find a reproducer that doesn't need greenlet.

@ashm-dev
ashm-dev deleted the gh-148594 branch April 15, 2026 11:36
felixonmars added a commit to felixonmars/archriscv-packages that referenced this pull request Oct 13, 2026
Clear the thread-local OpenSSL error queue before each SSL_read_ex and
SSL_write_ex attempt, applying the proposed upstream fix. SSL_get_error
consults this queue, so stale errors from other connections can turn a
recoverable read into a fatal error.

In python-distributed, closing a nanny registration connection leaves an
error that causes BrokenPipeError on a live worker connection. The worker
is disconnected immediately after registration, and test_retire_workers
times out during cluster creation.

python/cpython#148597
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants