Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.2
-
Fix Version/s: JRuby 1.2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:OS X 10.5.3
-
Number of attachments :
Description
Using TCPSocket.new with the 'localhost' address does not use the loopback interface. MRI properly listens/connects on the loopback interface when using 'localhost'.
In a subsequent test, I may be wrong about why this is failing. It seems that maybe MRI resolves 'localhost' to ::1 and JRuby resolves it to '127.0.0.1'.
In any case, when you're using an IPv6-supporting OS (such as OS X) and you run a TCPServer under MRI for 'localhost' and a TCPSocket under JRuby for 'localhost', they can't connect.