Skip to content

Decouple statistic and TCPRelay#2872

Merged
celeron533 merged 5 commits intomasterfrom
unknown repository
May 6, 2020
Merged

Decouple statistic and TCPRelay#2872
celeron533 merged 5 commits intomasterfrom
unknown repository

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 Stzx and celeron533 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