Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Incomplete
-
Affects Version/s: JRuby 1.1.4
-
Fix Version/s: None
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:Windows XP, JDK 1.5
Description
This error happends frequently after running the same program using net/ssh
D:/huy/scripts/jruby1.1.4/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh/transport/packet_stream.rb:68:in `available_for_read?': Unable to establish loopback
connection (IOError)
from D:/huy/scripts/jruby1.1.4/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh/transport/packet_stream.rb:80:in `next_packet'
from D:/huy/scripts/jruby1.1.4/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh/transport/session.rb:160:in `poll_message'
from D:/huy/scripts/jruby1.1.4/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh/transport/session.rb:155:in `loop'
from D:/huy/scripts/jruby1.1.4/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh/transport/session.rb:155:in `poll_message'
from D:/huy/scripts/jruby1.1.4/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh/connection/session.rb:437:in `dispatch_incoming_packets'
from D:/huy/scripts/jruby1.1.4/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh/connection/session.rb:194:in `preprocess'
from D:/huy/scripts/jruby1.1.4/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh/connection/session.rb:178:in `process'
from D:/huy/scripts/jruby1.1.4/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh/connection/session.rb:142:in `loop'
That error appears to be bubbling up from the windows selector implementation. It could be that the selector isn't always getting closed (there are a few exception paths in IO#select that can cause that), or windows just can't create and tear down selectors quickly.