mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-15 02:45:22 +09:00
WebPush::Connections mixed Stages into each new connection with `http.extend Stages` just before starting it. The connection is built in one place, WebPush::PersistentRequest, so it can be built from a class that already includes Stages: the same method lookup, without giving every pooled connection its own singleton class. Connections#request now also refuses a connection that isn't one, so a caller that builds a plain Net::HTTP gets the ArgumentError rather than a connection whose failures can't be told apart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>