Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[eBPF] Optimize fastcgi protocol inference #4465

Merged
merged 2 commits into from
Oct 12, 2023
Merged

[eBPF] Optimize fastcgi protocol inference #4465

merged 2 commits into from
Oct 12, 2023

Conversation

yinjiping
Copy link
Contributor

@yinjiping yinjiping commented Oct 12, 2023

The purpose is to push all data to the upper layer if the sofa protocol is mistakenly inferred as the fastcgi protocol.

This PR is for:

  • Agent

Affected branches

  • main
  • v6.3

The purpose is to push all data to the upper layer if the sofa protocol is mistakenly inferred as the fastcgi protocol.
@yinjiping
Copy link
Contributor Author

yinjiping commented Oct 12, 2023

测试

修复之前:

2023-10-12 18:31:03.717972 <FASTCGI> RECONFIRM false DIR 1 TYPE 1 PID 883 THREAD_ID 31749 COROUTINE_ID 0 SOURCE 0 ROLE 0 COMM Rpc-netty-serve TCP 10.233.73.38.43368 > 10.233.64.84.1234 LEN 240 SYSCALL_LEN 240 SOCKET_ID 0x43c4b176e813e6c TRACE_ID 0x43c4b176e813e75 TCP_SEQ 2424347424 DATA_SEQ 0 TimeStamp 1697106663717972

修复之后:

2023-10-12 18:32:52.115764 <FASTCGI> RECONFIRM false DIR 1 TYPE 1 PID 883 THREAD_ID 31749 COROUTINE_ID 0 SOURCE 0 ROLE 0 COMM Rpc-netty-serve TCP 10.233.73.38.43368 > 10.233.64.84.1234 LEN 512 SYSCALL_LEN 512 SOCKET_ID 0x53c4b1887519501 TRACE_ID 0x13c4b188751960f TCP_SEQ 2424349092 DATA_SEQ 7 TimeStamp 1697106772115764
2023-10-12 18:32:52.115810 <FASTCGI> RECONFIRM false DIR 1 TYPE 2 PID 883 THREAD_ID 31749 COROUTINE_ID 0 SOURCE 0 ROLE 0 COMM Rpc-netty-serve TCP 10.233.73.38.43368 > 10.233.64.84.1234 LEN 234 SYSCALL_LEN 234 SOCKET_ID 0x53c4b1887519501 TRACE_ID 0x13c4b1887519610 TCP_SEQ 2424349604 DATA_SEQ 8 TimeStamp 1697106772115810
2023-10-12 18:32:52.117701 <FASTCGI> RECONFIRM false DIR 0 TYPE 2 PID 883 THREAD_ID 31749 COROUTINE_ID 0 SOURCE 0 ROLE 0 COMM Rpc-netty-serve TCP 10.233.64.84.1234 > 10.233.73.38.43368 LEN 230 SYSCALL_LEN 230 SOCKET_ID 0x53c4b1887519501 TRACE_ID 0x13c4b1887519610 TCP_SEQ 1787874465 DATA_SEQ 9 TimeStamp 1697106772117701

修复之前只有单方向的一条数据,修复之后有双方向的数据

@yinjiping yinjiping enabled auto-merge (squash) October 12, 2023 10:55
@yinjiping yinjiping merged commit b9a9d1f into main Oct 12, 2023
7 checks passed
@yinjiping yinjiping deleted the Optimize_fastcgi branch October 12, 2023 11:03
yinjiping added a commit that referenced this pull request Oct 13, 2023
The purpose is to push all data to the upper layer if the sofa protocol is mistakenly inferred as the fastcgi protocol.
yinjiping added a commit that referenced this pull request Oct 13, 2023
The purpose is to push all data to the upper layer if the sofa protocol is mistakenly inferred as the fastcgi protocol.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants