Opened 9 years ago

#8867 new Feature Requests

Provide socket options for TCP keepalive configuring

Reported by: Andrey Semashev Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

Please, provide socket options in asio::ip::tcp to configure TCP keepalive behavior, like described in section 4.2 here. E.g. the following typedefs will suffice:

typedef boost::asio::detail::socket_option::integer< SOL_TCP, TCP_KEEPIDLE > keepalive_idle_time;
typedef boost::asio::detail::socket_option::integer< SOL_TCP, TCP_KEEPINTVL > keepalive_interval;
typedef boost::asio::detail::socket_option::integer< SOL_TCP, TCP_KEEPCNT > keepalive_probes;

Change History (0)

Note: See TracTickets for help on using tickets.