Skip to content

Commit 63d55ed

Browse files
authored
bpf: fix flaky http tests (#843)
1 parent 3e887d4 commit 63d55ed

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

bpf/generictracer/k_tracer.c

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,16 +1204,15 @@ int obi_handle_buf_with_args(void *ctx) {
12041204
}
12051205
}
12061206

1207-
// Packet type can't be reliably determined in HTTP split packets. This should
1208-
// always be a request.
1209-
u8 packet_type = args->packet_type ? args->packet_type : PACKET_TYPE_REQUEST;
1210-
1211-
http_send_large_buffer(info,
1212-
(void *)args->u_buf,
1213-
args->bytes_len,
1214-
packet_type,
1215-
args->direction,
1216-
k_large_buf_action_append);
1207+
http_send_large_buffer(
1208+
info,
1209+
(void *)args->u_buf,
1210+
args->bytes_len,
1211+
// Packet type can't be reliably determined in HTTP split packets. This should
1212+
// always be a request.
1213+
PACKET_TYPE_REQUEST,
1214+
args->direction,
1215+
k_large_buf_action_append);
12171216
} else if (still_responding(info)) {
12181217
info->end_monotime_ns = bpf_ktime_get_ns();
12191218
}

0 commit comments

Comments
 (0)