Skip to content

Fix stream id overflow problem#893

Open
linux-china wants to merge 2 commits intorsocket:masterfrom
linux-china:master
Open

Fix stream id overflow problem#893
linux-china wants to merge 2 commits intorsocket:masterfrom
linux-china:master

Conversation

@linux-china
Copy link

reuse stream id and avoid id conflict.

std::unordered_map<StreamId, std::shared_ptr<StreamStateMachineBase>>
streams_;
StreamId nextStreamId_;
std::atomic<StreamId> nextStreamId_;
Copy link
Member

Choose a reason for hiding this comment

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

Guess that should not be atomic since all the events are serialized over event bus

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