Reduce special handling of NGTCP2_RTB_ENTRY_FLAG_PROBE
@@ -605,7 +605,6 @@ static int rtb_on_pkt_lost(ngtcp2_rtb *rtb, ngtcp2_ksl_it *it,
ts);
}
- if (!(ent->flags & NGTCP2_RTB_ENTRY_FLAG_PROBE)) {
if (ent->flags & NGTCP2_RTB_ENTRY_FLAG_PTO_RECLAIMED) {
ngtcp2_log_info(rtb->log, NGTCP2_LOG_EVENT_RCV,
"pkn=%" PRId64 " has already been reclaimed on PTO",
@@ -652,20 +651,6 @@ static int rtb_on_pkt_lost(ngtcp2_rtb *rtb, ngtcp2_ksl_it *it,
return 0;
}
- ngtcp2_log_info(rtb->log, NGTCP2_LOG_EVENT_RCV,
- "pkn=%" PRId64
- " is a probe packet, no retransmission is necessary",
- ent->hd.pkt_num);
-
- rv = ngtcp2_ksl_remove_hint(&rtb->ents, it, it, &ent->hd.pkt_num);
- assert(0 == rv);
-
- ngtcp2_rtb_entry_objalloc_del(ent, rtb->rtb_entry_objalloc, rtb->frc_objalloc,
- rtb->mem);
-
- return 0;
-}
-
int ngtcp2_rtb_add(ngtcp2_rtb *rtb, ngtcp2_rtb_entry *ent,
ngtcp2_conn_stat *cstat) {
int rv;
