Skip to content

ViteRuby#dev_server_running? broken on MacOS 27#627

Description

@bensheldon
  • I have tried upgrading by running bundle update vite_ruby.
  • I have read the troubleshooting section before opening an issue.

Description 馃摉

ViteRuby#dev_server_running? relies on checking the socket and expecting that to raise an exception. That does not happen on current Rubies on MacOS 27:

Reproduction 馃悶

# NOT MacOS 27
irb(main):007> Socket.tcp("127.0.0.1", 9999).close
/Users/dzunk/.rubies/ruby-3.4.10/lib/ruby/3.4.0/socket.rb:68:in 'Socket#connect': Connection refused - connect(2) for 127.0.0.1:65534 (Errno::ECONNREFUSED)

# On MacOS 27

irb(main):016> Socket.tcp("127.0.0.1", 9999, connect_timeout: 1).close
=> nil

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: pending triageSomething doesn't seem to be working, but hasn't been verified

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions