review tests and fix AI found issues

This commit is contained in:
Quentin McGaw
2026-05-19 13:36:02 +00:00
parent 4a0e8afd3b
commit 5cd7bc7f74
5 changed files with 111 additions and 161 deletions
+2 -1
View File
@@ -132,7 +132,8 @@ func (c *socksConn) handleRequest(ctx context.Context) error {
return fmt.Errorf("writing successful %s response: %w", request.command, err)
}
errc := make(chan error)
const capacity = 2 // if one goroutine fails, we don't want to leak the other one
errc := make(chan error, capacity)
go func() {
_, err := io.Copy(c.clientConn, destinationConn)
if err != nil {