vmpooler-provider-vsphere/lib/vmpooler/providers
Mahima Singh f2390311df Wrap vms_in_pool/get_vm/get_vm_ip_address with Timeout.timeout
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.
2026-03-13 13:29:18 +05:30
..
vsphere.rb Wrap vms_in_pool/get_vm/get_vm_ip_address with Timeout.timeout 2026-03-13 13:29:18 +05:30