Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.0.0
-
Fix Version/s: JRuby 1.2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Number of attachments :
Description
TCPSocket.new(dest_addr, dest_port) works just fine. However, if a user wishes to specify the source address and port for the TCPSocket, there is no way to do this.
In MRI, you could use Socket.new() to create the TCPSocket, but this doesn't work in JRuby.
Thanks!
I fixed this on trunk (commit 4267) but had a weird time matching MRI/socket library behavior for localhost so I am luke warm about committing this to 1.0 branch until someone has verified/used this new TCPSocket.new code. Can the original reporter try their code against trunk to see if things are peachy?
Leaving open to indicate it is candidate for 1.0 branch.