Skip to content

Commit

Permalink
fix network set parent
Browse files Browse the repository at this point in the history
**Phenomenon and reproduction steps**

**Root cause and solution**

**Impactions**

**Test method**

**Affected branch(es)**

* main

**Checklist**

- [ ] Dependencies update required
- [ ] Common bug (similar problem in other repo)
  • Loading branch information
LYootsz authored and SongZhen0704 committed Nov 9, 2022
1 parent af04ddc commit f7980d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/app/application/l7_flow_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,12 @@ def add_flow(self, flow, network_delay_us):
self.resp_tcp_seq != flow["resp_tcp_seq"]):
return False
for key in MERGE_KEYS:
if flow["type"] == L7_FLOW_TYPE_RESPONSE or not self.req_tcp_seq:
if key in MERGE_KEY_REQUEST:
continue
if flow["type"] == L7_FLOW_TYPE_REQUEST or not self.resp_tcp_seq:
if key in MERGE_KEY_RESPONSE:
continue
if self.get(key) and flow.get(key) and (self.get(key) !=
flow.get(key)):
return False
Expand Down

0 comments on commit f7980d5

Please sign in to comment.