```ruby
require 'socket'

module SocketSpecs
  def self.port
    40001
  end

  def self.sockaddr_in(port, host)
    Socket::SockAddr_In.new(Socket.sockaddr_in(port, host))
  end

  def self.socket_path
    "#{File.dirname(__FILE__)}/unix_server_spec.socket"
  end
end
```

Use a socket path that is guaranteed to be short.
user
```ruby
require 'socket'

module SocketSpecs
  def self.port
    40001
  end

  def self.sockaddr_in(port, host)
    Socket::SockAddr_In.new(Socket.sockaddr_in(port, host))
  end

  def self.socket_path
    "/tmp/unix_server_spec.socket"
  end
end
```
assistant