These are chat archives for SmingHub/Sming

19th
Oct 2017
Andriy Petrynchyn
@petrynchyn
Oct 19 2017 05:52
@slaff PR #1266 work.
but there is still a note on example HttpServer_WebSockets. it is not correctly counted number of connected clients. When update a page in browser, number of clients becomes negative. It seems to me that server does not correctly process loss connection with client.
slaff
@slaff
Oct 19 2017 07:41
does not correctly process loss connection with client.
It is something related to TCP re-usage. Are you testing with a browser or with command line client?
Andriy Petrynchyn
@petrynchyn
Oct 19 2017 08:45

@slaff in browser

It is something related to TCP re-usage. Are you testing with a browser or with command line client?

slaff
@slaff
Oct 19 2017 12:10
@petrynchyn Check this PR #1267.
Andriy Petrynchyn
@petrynchyn
Oct 19 2017 13:19
@slaff PR #1267 works perfect, thank you very much
slaff
@slaff
Oct 19 2017 13:55
@petrynchyn Ok, I will merge it tomorrow, if not other issues pop-up :)
By the way, you can have max concurrent 5 TCP connections. If you need more you should recompile LWIP with MEMP_NUM_TCP_PCB=<your-desired-number>.