From 03730f2386e28f587d2bd8ceae2419329b890eca Mon Sep 17 00:00:00 2001 From: dak2 <32436625+dak2@users.noreply.github.com> Date: Thu, 27 Aug 2026 22:24:49 +0900 Subject: [PATCH] Declare Net::ReadLimitExceeded 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) --- stdlib/net-protocol/0/net-protocol.rbs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stdlib/net-protocol/0/net-protocol.rbs b/stdlib/net-protocol/0/net-protocol.rbs index e6416afd54..787a8494dc 100644 --- a/stdlib/net-protocol/0/net-protocol.rbs +++ b/stdlib/net-protocol/0/net-protocol.rbs @@ -27,6 +27,13 @@ module Net class ProtoRetriableError < ProtocolError end + # + # ReadLimitExceeded, a subclass of ProtocolError, is raised if the terminator is + # not found within the byte limit given to Net::BufferedIO#readuntil. + # + class ReadLimitExceeded < ProtocolError + end + class HTTPBadResponse < StandardError end