Skip to content

Fix read refcount for ChanIn and ChanInOut clone()#42

Merged
mkj merged 1 commit intomainfrom
matt/chanclone
Mar 18, 2026
Merged

Fix read refcount for ChanIn and ChanInOut clone()#42
mkj merged 1 commit intomainfrom
matt/chanclone

Conversation

@mkj
Copy link
Owner

@mkj mkj commented Mar 17, 2026

The read refcount wasn't incremented on ChanIn or ChanInOut clone. This could result in input being discarded if the read refcount hit zero. It isn't clear whether this could result in missed EOF (which has been reported).

The read refcount wasn't incremented on ChanIn or ChanInOut clone.
This could result in input being discarded if the read refcount hit
zero. It isn't clear whether this could result in missed EOF (which has
been reported).
@mkj
Copy link
Owner Author

mkj commented Mar 17, 2026

@jubeormk1 not sure if this explains your EOF clone problem, but is a bug.

@mkj mkj merged commit 11955f6 into main Mar 18, 2026
6 checks passed
@mkj mkj deleted the matt/chanclone branch March 18, 2026 13:30
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.

1 participant