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

activeClients debug message shows wrong information #199

Closed
wants to merge 1 commit into from
Closed

activeClients debug message shows wrong information #199

wants to merge 1 commit into from

Conversation

hreintke
Copy link
Contributor

@hreintke hreintke commented Aug 3, 2015

Update debugf message in TcpServer

@anakod
Copy link
Member

anakod commented Aug 5, 2015

Why it calculates wrong? I think it should be substracted somewhere.

@hreintke
Copy link
Contributor Author

hreintke commented Aug 5, 2015

Yes I agree but...
The decrement of activeclients is in tcpserver class. The httpserver/httpconnection does not callback/make use of that fucntionality -> it keeps incrementing. Possibly the solution is in the destructor of httpconnection but I am not sure yet and want to verify/test.
I like to make it work as it also would give the possibility to add functionality to limit the number of active clients to limit memory usages
The current display of the (wrong) increasing number of activeclients creates confusion and discussions of heap usage. I wanted to get that out of the equation and temporary remove the display from the debug statement

@AutomationD
Copy link
Contributor

@hreintke thank you so much for your PR.
We are trying to implement git-flow (#230). Can you please re-submit your PR to a hotfix branch?
For example hotfix/active-clients-debug?

@hreintke
Copy link
Contributor Author

hreintke commented Sep 4, 2015

@kireevco : This is not a feature but a bug-fix.
In my opinion these should not be pushed to a feature branch but either to develop or a generic bug-fix branch

@AutomationD
Copy link
Contributor

@hreintke sorry,that's what I meant - hotfix/active-clients-debug

We are trying to align with git-flow, it will be happening gradually

@@ -128,7 +128,7 @@ err_t TcpServer::onAccept(tcp_pcb *clientTcp, err_t err)
void TcpServer::onClient(TcpClient *client)
{
activeClients++;
debugf("TcpServer onClient %s, activeClients = %d\r\n ",client->getRemoteIp().toString().c_str(),activeClients);
debugf("TcpServer onClient %s\r\n ",client->getRemoteIp().toString().c_str());
Copy link
Member

Choose a reason for hiding this comment

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

bit picky, but do you want to remove the blank space on the end of the message?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sharp.. Should I update the PR or submit a new one ?

PS will be offline from now. Further tomorrow

Copy link
Member

Choose a reason for hiding this comment

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

if you want to change that the ideal thing to do would be squash the second commit and the first together, but it doesn't look like the original repository still exists so i'd probably just leave it

@hreintke
Copy link
Contributor Author

@raburton :
Just noticed that this patch did not go into the 1.4.0 release.
Can you merge with develop so I goes in next ?

raburton added a commit to raburton/Sming that referenced this pull request Oct 31, 2015
raburton added a commit that referenced this pull request Oct 31, 2015
@raburton raburton closed this Oct 31, 2015
slaff pushed a commit to slaff/Sming that referenced this pull request Dec 9, 2016
Fix grammatical error on the 404 page.
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.

None yet

4 participants