Skip to content

Declare Net::ReadLimitExceeded added in net-protocol 0.3.0 - #3107

Open
dak2 wants to merge 1 commit into
ruby:masterfrom
dak2:add-net-protocol-read-limit-exceeded
Open

Declare Net::ReadLimitExceeded added in net-protocol 0.3.0#3107
dak2 wants to merge 1 commit into
ruby:masterfrom
dak2:add-net-protocol-read-limit-exceeded

Conversation

@dak2

@dak2 dak2 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What

net-protocol 0.3.0 adds Net::ReadLimitExceeded, raised when Net::BufferedIO#readuntil does not find the terminator within the byte limit it was given. Declare it in stdlib/net-protocol/0/net-protocol.rbs.

Added in ruby/net-protocol#67.

Notes

readuntil itself gained a limit: keyword in the same release, but it needs no signature update: Net::BufferedIO is :nodoc: internal use only and is not declared in RBS.

The other addition in 0.3.0, Net::Protocol::TCP_SOCKET_NEW_HAS_OPEN_TIMEOUT, is a private_constant.

Independent of #3106, which bumps the lock to 0.3.0.

🤖 Generated with Claude Code

net-protocol 0.3.0 adds it, raised when readuntil does not find the
terminator within the given byte limit.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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