Skip to content

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

Merged
ksss merged 1 commit into
ruby:masterfrom
dak2:add-net-protocol-read-limit-exceeded
Aug 30, 2026
Merged

Declare Net::ReadLimitExceeded added in net-protocol 0.3.0#3107
ksss merged 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>
@dak2
dak2 force-pushed the add-net-protocol-read-limit-exceeded branch from 3b713e4 to 03730f2 Compare August 30, 2026 07:35

@ksss ksss left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@ksss
ksss added this pull request to the merge queue Aug 30, 2026
@ksss ksss added this to the RBS 4.2 milestone Aug 30, 2026
Merged via the queue into ruby:master with commit 928cde2 Aug 30, 2026
24 checks passed
@dak2
dak2 deleted the add-net-protocol-read-limit-exceeded branch August 30, 2026 12:58
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.

2 participants