You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by li...@apache.org on 2024/12/20 04:58:43 UTC
(skywalking-rover) branch tmp_disable_reading updated: delete prev data id when connection close
This is an automated email from the ASF dual-hosted git repository.
liuhan pushed a commit to branch tmp_disable_reading
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git
The following commit(s) were added to refs/heads/tmp_disable_reading by this push:
new e2af874 delete prev data id when connection close
e2af874 is described below
commit e2af874f5c13ac1cfa085757aad7371ceb85dfbb
Author: mrproliu <74...@qq.com>
AuthorDate: Fri Dec 20 12:39:31 2024 +0800
delete prev data id when connection close
---
bpf/accesslog/common/connection.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bpf/accesslog/common/connection.h b/bpf/accesslog/common/connection.h
index cb799e8..c37f07b 100644
--- a/bpf/accesslog/common/connection.h
+++ b/bpf/accesslog/common/connection.h
@@ -22,6 +22,7 @@
#include "data_args.h"
#include "socket_opts.h"
#include "queue.h"
+#include "socket_data.h"
// syscall:connect
struct connect_args_t {
@@ -303,6 +304,7 @@ static __inline void submit_connection_when_not_exists(void *ctx, __u64 id, stru
}
static __inline void notify_close_connection(void* ctx, __u64 conid, struct active_connection_t* con, __u64 start_time, __u64 end_time, int ret) {
+ bpf_map_delete_elem(&socket_data_last_id_map, &conid);
struct socket_close_event_t *close_event;
close_event = rover_reserve_buf(&socket_close_event_queue, sizeof(*close_event));
if (close_event == NULL) {