Skip to content

Commit e43dcce

Browse files
herwinweregon
authored andcommitted
Switch dummy FTP server to use IP address instead of hostname
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.
1 parent 77ebfbf commit e43dcce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/net-ftp/fixtures/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class DummyFTP
99
attr_reader :server_port
1010

1111
def initialize
12-
@hostname = "localhost"
12+
@hostname = "127.0.0.1"
1313
@server = TCPServer.new(@hostname, 0)
1414
@server_port = @server.addr[1]
1515

0 commit comments

Comments
 (0)