mirror of
https://github.com/puppetlabs/vmpooler-provider-vsphere.git
synced 2026-03-26 23:47:43 -04:00
The read_timeout on Net::HTTP connections may not reliably interrupt blocking Java SSL socket reads in JRuby. Add an explicit Timeout.timeout wrapper around the connection pool block in vms_in_pool, get_vm, and get_vm_ip_address so that if vSphere hangs mid-operation (after the health check passes), the Timeout::Error (a StandardError in JRuby 9.x) propagates to the circuit breaker which counts it as a failure. After 5 consecutive timeouts the circuit opens and subsequent check_pool cycles fail immediately rather than blocking all pool threads. |
||
|---|---|---|
| .. | ||
| vsphere.rb | ||