Log large packets receive/send. (#4521)

* Log large packets receive/send.

Seeing cases of servers reporting need for segmentation/re-assembly of
packets. So, logging packet receive/send for RTP/RTCP to check if
anything is seeing more than 1400 byte packets.

* log downtrack RTCP too
This commit is contained in:
Raja Subramanian
2026-05-13 16:04:53 +05:30
committed by GitHub
parent d123675008
commit ef2e5efe14
5 changed files with 30 additions and 3 deletions
+5
View File
@@ -1432,6 +1432,11 @@ func (t *PCTransport) GetICEConnectionType() types.ICEConnectionType {
}
func (t *PCTransport) WriteRTCP(pkts []rtcp.Packet) error {
// TODO-CLEANUP-PACKET-SIZE: remove after checking for large packets
raw, _ := rtcp.Marshal(pkts)
if len(raw) > 1400 {
t.params.Logger.Infow("large RTCP packet send", "size", len(raw))
}
return t.pc.WriteRTCP(pkts)
}