Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bpf/gotracer/go_nethttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ int obi_uprobe_readRequestStart(struct pt_regs *ctx) {

connection_info_t *existing = bpf_map_lookup_elem(&ongoing_server_connections, &g_key);

if (!existing) {
// Populate connection info if: no entry exists yet, OR the entry was created by connServe
// with zeroed ports
if (!existing || (existing->d_port == 0 && existing->s_port == 0)) {
void *c_ptr = GO_PARAM1(ctx);
if (c_ptr) {
void *conn_conn_ptr =
Expand Down