Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6.3, JRuby 1.6.4
-
Fix Version/s: None
-
Component/s: Standard Library
-
Labels:
-
Environment:Mac OS X 10.6.8
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)
-
Number of attachments :
Description
When there's nothing to read, TCPSocket#read blocks (indefinitely?) when passed zero. MRI returns an empty string immediately.
This causes https://github.com/thoughtbot/capybara-webkit to hang.