mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 09:05:23 +08:00
The Happy Eyeballs patch prepends an `open` singleton method onto TCPSocket, and TCPServer inherits it because TCPServer < TCPSocket. With a fixed host/port signature, `TCPServer.open(port)` raised ArgumentError before `super` could run. That broke TemporaryDb#port_available? and, in turn, the migrations tooling's `disco check` plugin-manifest refresh. The patched `open` now takes *args and forwards the caller's arguments untouched to `super` for non-token hosts, so subclasses with looser signatures keep working. |
||
|---|---|---|
| .. | ||
| connector_spec.rb | ||
| http_spec.rb | ||
| resolver_spec.rb | ||
| ssrf_detector_spec.rb | ||