Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:Mac OS X Snow Leopard 64-bit
-
Number of attachments :
Description
The following code blocks in MRI, but returns immediately in JRuby:
{{
require 'socket'
server = UNIXServer.open "/tmp/#
.sock"
IO.select [server], nil, nil, 20
}}
We should probably look at using jnr-unixsocket (https://github.com/jnr/jnr-unixsocket) in JRuby - it provides NIO selectable unix sockets, though, with a unix-socket specific Selector implementation, which might complicate things.