- SEE ALSO
- COPYRIGHT AND LICENSE
XAS::Lib::Mixin::Keepalive - A mixin to implement TCP keepalive
use XAS::Class version => '0.01', base => 'XAS::Base', mixin => 'XAS::Lib::Mixin::Keepalive' ;
This module is a mixin class to share code for initializing TCP level keepalives.
This will attempt to define the necessary variables to allow TCP keepalive to function. Not all Perl's and OS's define the necessary values.
This will enable keepalive on the given socket. By default this will initialize keepalive to the RFC minimal, i.e. send a keepalive packet once every 2 hours. If the OS supports it, this will be modified to send up to 3 keepalive packets once every 15 minutes.
This should fix those pesky firewalls...
Kevin L. Esteb, <firstname.lastname@example.org>
Copyright (C) 2014 Kevin L. Esteb
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.