Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0
Assignee: Thomas E Enebo
Created: 27/Oct/12 7:43 AM
Description:

Using the snmp gem the execution hangs forever when an invalid host is specified, ignoring the timeout option (using JRUBY 1.6.7 the Timeout::Error exception is raised).

require 'snmp'

SNMP::Manager.open(:host => '99.99.99.99',:timeout => 3) do |manager|
  response = manager.get(["sysDescr.0", "sysName.0"])
end

The execution hangs in a UDPSocket#recv call performed inside a Timeout.timeout block

Timeout.timeout(@timeout) do
  return get_response(request)
end
Environment: Ubuntu 11.04 64bit, jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on Java HotSpot(TM) 64-Bit Server VM 1.6.0_27-b07 [linux-amd64]
Project: JRuby
Priority: Major Major
Reporter: Giovanni Cristelli
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to