/src/hooks/dhcp/ping_check/ping_channel.cc
PingChannel::open() - add call to startRead() to
ensure we always handle read ready and avoid
ICMP socket build up when not actively ping checking
--- /dev/null
+[bug] tmark
+ Corrected an issue in the ping-check hook library that
+ could result in the ICMP socket stuck in the read ready
+ state.
+ (Gitlab #4221)
isc_throw(Unexpected, "PingChannel::open failed:" << ex.what());
}
+ // Start reader now so unexpected ICMP traffic won't go unhandled and pile up.
+ startRead();
+
LOG_DEBUG(ping_check_logger, isc::log::DBGLVL_TRACE_BASIC, PING_CHECK_CHANNEL_SOCKET_OPENED);
}