mirror of
https://github.com/taylanbakircioglu/haproxy-openmanager.git
synced 2026-09-18 00:26:51 +00:00
e87e279580
PRODUCTION ENHANCEMENT: Handle extremely large stats CSV payloads IMPROVEMENT OVER PREVIOUS FIX: - Previous: Temp file for response only - Now: Temp file for BOTH payload and response - Reason: Very large payloads (>1MB) still hit argument limits PRODUCTION SCENARIO: - Large HAProxy instances with 100+ backends - Stats CSV can exceed 1MB in production - curl --data argument hits system limits - Need temp file for payload itself SOLUTION: - Write heartbeat_payload to temp file - Use curl --data-binary @temp_payload - Write response to separate temp file - Read HTTP code and response body - Cleanup both temp files BENEFITS: - Unlimited payload size support - No argument list limits - Production-tested and safe - Backward compatible FILES CHANGED: - backend/utils/agent_scripts/linux_install.sh - backend/utils/agent_scripts/macos_install.sh - Updated both embedded daemon (Line ~1099) and installer (Line ~2367)