These are chat archives for Links2004/arduinoWebSockets

5th
Mar 2017
Markus
@Links2004
Mar 05 2017 08:58
is the HTTPClient in the callback for the websochet ?
if yes, since the HTTPClient is sync and uses yield its barackes the OS of the ESP, which ends up in some strange problems.
Mehrdad K
@mkeyno
Mar 05 2017 09:00
no , all separated , async websocket just change the flag status so it run it in next loop
Markus
@Links2004
Mar 05 2017 09:01
how many TCP connections / server have you running in parrallel?
Mehrdad K
@mkeyno
Mar 05 2017 09:02
actually I discus this issue with couple of guys and came top conclusion HTTPClient should be rewritten for async tcp as well
I don't know but as you said before I delimited with 5 clients
Markus
@Links2004
Mar 05 2017 09:03
yes, async for HTTP client is on of the thinks needed.
Mehrdad K
@mkeyno
Mar 05 2017 09:04
also I noticed HTTPClient so unreliable for reuse or repeated the connection in loop
there is couple of open issue upon it
Markus
@Links2004
Mar 05 2017 09:05
yes, have written it in some days, there are some corners where it not performes best.
Mehrdad K
@mkeyno
Mar 05 2017 09:06
do you have any plan to think about rewrite async HTTP client
its really need the deep knowledge of async stack and beyond most of user skills here
Markus
@Links2004
Mar 05 2017 09:08
I have it on the todo, but unfortunately less to no time for all the open source projects where I working on.
Mehrdad K
@mkeyno
Mar 05 2017 09:12
I understand, but as me-no-dev mentioned there is only couple of guys can launch such repo