-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
The stream id of the http2 protocol "Frame Type => DATA" is incorrect #736
Comments
Hi @huaixia777! I'm here to help you with any bugs, questions, or contributions. Let me know how I can assist you! The issue you're experiencing with the incorrect stream ID for HTTP/2 DATA frames in ecapture might be related to how ecapture associates DATA frames with their corresponding HEADERS frames using the StreamID. In the ecapture codebase, the StreamID is used to track and associate frames, as seen in the To address this discrepancy, you might want to verify the logic in the code that handles the assignment and tracking of StreamIDs for HTTP/2 frames. Ensure that the StreamID is correctly maintained and updated throughout the processing of frames. It could be helpful to compare the logic with how Wireshark handles StreamIDs to identify any differences or potential issues in ecapture's implementation. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
this maybe the correct stream id is overwritten by the follow one, see here. I will try to fix it. |
After the local test, I believe the reason is the current code merge all data frame together, and use the last stream id as the output. So in pcap, you will see more than 3 data frame, but in text mode, it may has a single data frame. It is a design question. What do you think about it? Is it better to merge or just output one by one? |
Oh, thank you. I see what you mean. Can this be repaired? |
I think it is possible to fix; I will try to find a better solution. |
After fixing #733 issue, i tried to use ecapture and wireshark to capture http2 protocol packets at the same time, and found that the stream id of data Frame, that is, "Frame Type=>DATA", was incorrect.
The following is the packet that I captured.
It can be seen that the stream id of data frame in wireshark is 1. However, streamid output of data frame with the same content in ecapture is 3.
Can this problem be solved? Thank you very much!
ecapture,because the content is too long, some content is omitted
** @wireshark**
#
The text was updated successfully, but these errors were encountered: