Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
quic-interop-runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sedrubal
Masterarbeit
quic-interop-runner
Commits
ab9313c0
Verified
Commit
ab9313c0
authored
3 years ago
by
Sebastian Endres
Browse files
Options
Downloads
Patches
Plain Diff
Limit packet search for RTT determination to first 10 packets -> fix endless analyzing
parent
eac27bfe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
trace_analyzer2.py
+8
-1
8 additions, 1 deletion
trace_analyzer2.py
with
8 additions
and
1 deletion
trace_analyzer2.py
+
8
−
1
View file @
ab9313c0
...
...
@@ -33,6 +33,10 @@ nest_asyncio.apply()
QuicStreamPacket
=
Any
# Use the first n packets to search for packets usable to calculate RTT:
CALC_RTT_FIND_PKG_LIMIT
=
10
class
ParsingError
(
Exception
):
"""
Exception that will be thrown when we can
'
t parse the trace.
"""
...
...
@@ -840,9 +844,12 @@ class Trace:
first_opp_dir_packet_left
:
Optional
[
"
Packet
"
]
=
None
# search for packets
for
packet
in
right_trace
.
packets
:
for
i
,
packet
in
enumerate
(
right_trace
.
packets
)
:
if
not
hasattr
(
packet
,
"
direction
"
):
continue
elif
i
>
CALC_RTT_FIND_PKG_LIMIT
:
return
None
if
packet
.
direction
==
direction
:
last_in_dir_packet_left
=
left_trace
.
get_packet_by_fpr
(
right_trace
.
_packet_fingerprint
(
packet
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment