From 8f364a74df89ca48c6c94e658b2db1d2ad801f9c Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Sun, 18 Jan 2026 12:48:46 +0000 Subject: [PATCH] Add Conn.Close --- conn.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conn.go b/conn.go index eb43b00..2c43f0c 100644 --- a/conn.go +++ b/conn.go @@ -101,3 +101,9 @@ func (c *Conn) WriteAttrs(attrs []Attr) error { c.bufs.Put(buf) return err } + +// Close the underlying connection. After this, all attempts to write onto the +// connection will return an error. +func (c *Conn) Close() error { + return c.s.Close() +}