Add tcp keeplaive support on platforms that support these socket options. Set default to fail the socket after 120 seconds