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

Decouple statistic and TCPRelay #2872

Merged
merged 5 commits into from May 6, 2020
Merged

Decouple statistic and TCPRelay #2872

merged 5 commits into from May 6, 2020

Conversation

ghost
Copy link

@ghost ghost commented Apr 29, 2020

Please follow the guide below

  • You will be asked some questions, please read them carefully and answer honestly

  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])

  • Use Preview tab to see how your pull request will actually look like

  • Searched for similar pull requests

  • Compiled the code with Visual Studio

  • Require translation update

  • Require document update (readme.md, wikipage, etc)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New feature

Description of your pull request and other information

Using event to update statistic data.

@ghost ghost requested review from celeron533 and Stzx April 30, 2020 11:42
{
lock (Handlers)
{
Handlers.Remove(handler);
Copy link
Contributor

Choose a reason for hiding this comment

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

May need to remove all registered events (OnConnected, OnInbound, OnOutbound, OnFailed, OnClosed)

Copy link
Author

Choose a reason for hiding this comment

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

I don't think so, re-trigger following event after OnClosed won't cause problem.

@celeron533 celeron533 merged commit 607ae65 into shadowsocks:master May 6, 2020
@ghost ghost deleted the decouple-statistic branch July 25, 2020 06:32
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