Files
avc-phone-ai/odoo_client.py
tocmo0nlord 80e0bbe899 Add XML-RPC timeout to odoo_client (hung Odoo leaked call slots)
Reliability drill finding: xmlrpc.client has no default timeout, and the call
slot is released only after run_agent returns (which awaits post-call
persistence). A hung -- not refused -- Odoo would block forever; two hung
persists would leave the phone line permanently at capacity ("busy") until a
restart. All XML-RPC round-trips now use a 15s socket timeout
(ODOO_TIMEOUT_SECS), http and https transports both covered.
Drilled: black-hole address fails cleanly at the timeout; real auth unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 04:57:04 +00:00

6.3 KiB