Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: JRuby 1.2
-
Fix Version/s: None
-
Component/s: Core Classes/Modules, Intro
-
Labels:None
-
Environment:Ubuntu Linux 8.10. x86 Wired and wireless networking enabled.
-
Number of attachments :
Description
When launching Webrick or Mongrel, the application is reported as starting on 0.0.0.0:3000 but when looking at the netstat -aon for the connection, the binding information is incorrect and the application cannot be contacted.
MRI Behavior:
Launch using ./script/server
$ netstat -aon | grep 3000
tcp 0 0 0.0.0.0:3000 0.0.0.0:* LISTEN off (0.00/0/0)
JRUBY 1.2.0 Behavior:
Launch using
{path to jruby}/jruby ./script/server
$ netstat -aon | grep 3000
tcp6 0 0 :::3000 :::* LISTEN off (0.00/0/0)
Functionally, these two are not the same. When bound to 0.0.0.0:3000, the application can receive service requests on the specified port.
When bound to :::3000, the application doesn't see anything except requests to localhost.
Issue Links
- is duplicated by
-
JRUBY-3241
Bug when binding to ipv4 port when same port is binded to ipv6 address
-
This could be easy for someone who knows how Java handles IP4/IP6 binding; it looks like we're trying to bind to IP6 by default. This may also have been fixed since the original report, or at least improved. Marking as Intro.