Skip to content

Commit

Permalink
Switch dummy FTP server to use IP address instead of hostname
Browse files Browse the repository at this point in the history
Using a hostname does cause an occasional leaking thread in the Ruby socket
library when using Ruby 3.4.1. Switching to the IP address mitigates the issue.
  • Loading branch information
herwinw committed Dec 31, 2024
1 parent 8147b87 commit 85942fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/net-ftp/fixtures/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class DummyFTP
attr_reader :server_port

def initialize
@hostname = "localhost"
@hostname = "127.0.0.1"
@server = TCPServer.new(@hostname, 0)
@server_port = @server.addr[1]

Expand Down

0 comments on commit 85942fe

Please sign in to comment.