Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the computation of the active_sockets number.
If we added a new socket in the recycle_acceptor, we should not decrement the number of active sockets.
- Loading branch information
Shayan Pooya
committed
Mar 24, 2014
1 parent
3138381
commit 1849699
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1849699
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, is the ActiveSockets forgot to sub 1 in case set:size(Pool) < PoolSize of true?
I find that whenever the number of Acceptor arriving the Max , and then finish all request , the ActiveSockets will increase the number of PoolSize.
1849699
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the right thing to do at this point is to write some tests that define how it should behave and fix the code if necessary.
1849699
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please open an issue with any information you have and I'll look into it when I get a chance. If you have the time to write the tests and submit a PR, let me know.