Skip to content

Commit

Permalink
fix active DNS request invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
def committed May 29, 2024
1 parent eae516b commit c521ad4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ebpftracer/ebpf.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ebpftracer/ebpf/l7/l7.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ int trace_exit_read(void *ctx, __u64 id, __u32 pid, __u16 is_tls, long int ret)
e->payload_size = ret;
COPY_PAYLOAD(e->payload, ret, payload);
send_event(ctx, e, k.pid, k.fd);
bpf_map_delete_elem(&active_l7_requests, &k);
return 0;
} else if (is_cassandra_response(payload, ret, &k.stream_id, &e->status)) {
req = bpf_map_lookup_elem(&active_l7_requests, &k);
Expand Down

0 comments on commit c521ad4

Please sign in to comment.