Skip to content

Conversation

@masaori335
Copy link
Contributor

Summary

For tracking #4504, I added history feature to HTTP/2 component which is used in HttpSM. It was quite useful for debugging. This is bit generalized from what we deployed for #4504.

This PR includes

  • Add _history member to Http2ClientSession and Http2Stream
  • Http2ConnectionState's history is recorded in Http2ClientSession's _history, because they're sharing mutex.

Memory footprint

History is ring buffer and the size is 2088 bytes. (HISTORY_DEFAULT_SIZE * sizeof(HistoryEntry) + sizeof(unsigned int) = 65 * 32 + 8 ) It looks acceptable.

@masaori335 masaori335 added this to the 9.0.0 milestone Feb 7, 2019
@masaori335 masaori335 self-assigned this Feb 7, 2019
SolidWallOfCode
SolidWallOfCode previously approved these changes Feb 7, 2019
Copy link
Member

@SolidWallOfCode SolidWallOfCode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unfortunate REMEMBER needs to be a #define, I need to think of how to get around that.

@masaori335
Copy link
Contributor Author

clang-analyzer issues are fixed.

@masaori335 masaori335 merged commit 84d59dc into apache:master Feb 12, 2019
@bryancall bryancall modified the milestones: 9.0.0, 8.1.0 Apr 11, 2019
@bryancall
Copy link
Contributor

Cherry picked to 8.1.0.

@zwoop zwoop modified the milestones: 8.1.0, 8.1.0-nogo Mar 18, 2020
@zwoop zwoop modified the milestones: 8.1.0-nogo, 8.1.0 Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants