Skip to content

Fix "read: unexpected return" from SourceCustom#on_read - #450

Open
janko wants to merge 1 commit into
libvips:masterfrom
janko:on-read-fixes
Open

janko wants to merge 1 commit into
libvips:masterfrom
janko:on-read-fixes

Conversation

@janko

@janko janko commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Apologies for the LLM-generated #448 😅 I realized the only real bug from it is the return 0 if chunk.nil? inside the block passed to signal_connect, which causes a LocalJumpError when nil is received at EOF, resulting in "read: unexpected return" getting printed.

`return` inside the signal handler block raised LocalJumpError, which was
rescued and printed.

This branch has not been deployed

No deployments
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