]> git.proxmox.com Git - pve-manager.git/commit - PVE/Status/Graphite.pm
status/graphite: just use setsockopt to set timeouts
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Nov 2019 15:27:34 +0000 (16:27 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Nov 2019 15:27:50 +0000 (16:27 +0100)
commit8dcf2cac468ed4de30c023764c6ae4fcbd56a5b5
treef9f274063e3db5d0e2c5ccb4715233147f014f2a
parent228f017ee4f19e2616b8b9896bbb32cf01dd3d23
status/graphite: just use setsockopt to set timeouts

after rethinking this it felt weird, sockets already can to this
themself, so I checked out the IO::Socket::Timeout module, and yeah,
it's just a OOP wrapper for this, hiding the "scary" struct pack.

So instead of adding that as dependency lets do it ourself.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Status/Graphite.pm