From 80c7d25c737a7f7ffd38bdc75075a34ae93f2ccb Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 28 Aug 2025 09:03:27 -0400 Subject: [PATCH] hopp: Clarify documentation for Conn.SetSizeLimit --- connection.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/connection.go b/connection.go index 7c82c8f..88ec7d4 100644 --- a/connection.go +++ b/connection.go @@ -24,7 +24,9 @@ type Conn interface { AcceptTrans() (Trans, error) // SetSizeLimit sets a limit (in bytes) for how large messages can be. - // By default, this limit is 1 megabyte. + // By default, this limit is 1 megabyte. Note that this is only + // enforced when sending and receiving byte slices, and it does not + // apply to [Trans.SendWriter] or [Trans.ReceiveReader]. SetSizeLimit(limit int64) }