WIP test but i think im done

This commit is contained in:
Bel LaPointe
2026-02-04 18:54:18 -07:00
parent 262e432344
commit 7dab9d2a0a
2 changed files with 57 additions and 2 deletions

View File

@@ -149,9 +149,10 @@ func (c Config) WithConn(hashKey string, foo func(net.Conn) error) error {
log.Printf("errored with conn %v: %v", hashIdx, err)
forwardConn.Close()
return err
} else {
log.Printf("release conn %v", hashIdx)
forward.Put(forwardConn)
}
log.Printf("release conn %v", hashIdx)
forward.Put(forwardConn)
return nil
}