Skip to content

Commit

Permalink
ignore non-QUIC packets in trace analysis (#422)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Koutny <jkoutny@akamai.com>
  • Loading branch information
koujaz and Jan Koutny authored Feb 4, 2025
1 parent aa1bd7b commit a43bac3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def _get_packets(self, f: str) -> List:
# See https://github.com/KimiNewt/pyshark/issues/390.
try:
for p in cap:
if "quic" not in p:
logging.info("Captured packet without quic layer: %r", p)
continue
packets.append(p)
cap.close()
except Exception as e:
Expand Down

0 comments on commit a43bac3

Please sign in to comment.