Skip to main content

Module loss_report

Module loss_report 

Source
Expand description

Summarises dropped frames and duplicate segments received by a SessionSocket.

Some frames arrive too late or have missing segments. Retried packets can also arrive twice. Simply logging every drop or duplicate can hide other problems. This module counts these events and logs an INFO summary only when frames were dropped or could not be reassembled.

A โ€œwindowโ€ is the time covered by one summary. Each counted event checks whether enough time has passed to finish the window. There is no background timer, so an idle socket waits until the next event or until this report is dropped before logging its remaining counts.

Structsยง

FrameLossReport ๐Ÿ”’
Counts received frames and duplicate segments, and logs summaries when there is frame loss.
FrameLossSummary ๐Ÿ”’
Counts collected during one reporting period.

Constantsยง

FRAME_LOSS_REPORT_INTERVAL ๐Ÿ”’
Minimum time between summaries, except for the final summary when the report is dropped.