Skip to content

Wake concurrent requests on EOF - #225

Merged
oleonardolima merged 1 commit into
bitcoindevkit:masterfrom
tnull:2026-08-wake-electrum-waiters-on-eof
Aug 20, 2026
Merged

Wake concurrent requests on EOF#225
oleonardolima merged 1 commit into
bitcoindevkit:masterfrom
tnull:2026-08-wake-electrum-waiters-on-eof

Conversation

@tnull

@tnull tnull commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Description

A clean EOF currently returns only to the thread reading the connection. Other callers remain blocked on their response channels indefinitely.

Treat EOF like other shared I/O failures so every pending request is notified and can participate in connection recovery.

Co-Authored-By: HAL 9000

Changelog notice

### Fixed

- Fix concurrent requests on EOF

Checklists

All Submissions:

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

@oleonardolima oleonardolima left a comment

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.

ACK df535ef

A clean EOF currently returns only to the thread reading the
connection. Other callers remain blocked on their response channels
indefinitely.

Treat EOF like other shared I/O failures so every pending request is
notified and can participate in connection recovery.

Co-Authored-By: HAL 9000
@oleonardolima
oleonardolima force-pushed the 2026-08-wake-electrum-waiters-on-eof branch from df535ef to 944d5cb Compare August 20, 2026 14:21

@oleonardolima oleonardolima left a comment

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.

self-ACK 944d5cb

I renamed and also signed the commit (which was missing).

@oleonardolima
oleonardolima merged commit d93053f into bitcoindevkit:master Aug 20, 2026
18 checks passed

@luisschwab luisschwab left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

post-merge ACK 944d5cb

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.

3 participants