amonapp / amonagent

Single binary agent for Linux
https://amon.cx
MIT License
48 stars 21 forks source link

Fix #17 - Amon Agent Stops Sending Data #18

Closed jyksnw closed 7 years ago

jyksnw commented 7 years ago

Fix #17

Implemented a request cancel policy which will automatically cancel the http request if it exceeds 10 seconds. Also updated remote.go to include additional timeouts on the http.Client connection. These were added to prevent the scenario when an http request is made but never returns; this condition would leave the Amon Agent in a state where it would not collect or send new data, even after the issue causing the http request to hang had been resolved.

This implementation should log the error and continue to re-attempt the collection and sending of data with minimal delay or impact.