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

Https connection time issue #155

Open
NathanKuo0821 opened this issue Jul 1, 2022 · 2 comments
Open

Https connection time issue #155

NathanKuo0821 opened this issue Jul 1, 2022 · 2 comments

Comments

@NathanKuo0821
Copy link

I wrote a http post command to control the sensor of the esp32 board. I encountered a problem. It seems that https will take a long time(1~1.5 sec) to parse the data after connecting? Is there any way to improve this part?

If HTTP :
[2022-06-29 16:58:47.052] [HTTPS:I] New connection. Socket FID=49
[2022-06-29 16:58:47.055] [HTTPS:I] Request: POST /openDrawer (FID=49)

If HTTPS:
[2022-06-30 10:21:09.484] [HTTPS:I] New connection. Socket FID=49
[2022-06-30 10:21:11.042] [HTTPS:I] Request: POST /openDrawer (FID=49)

Nathan Kuo

@squonk11
Copy link
Contributor

squonk11 commented Jul 4, 2022

For some reason the first connection to the ESP32 webserver takes a long time (complex negotiation procedure?). Unfortunaltely https requests always build up a new connection for each request. In oder to overcome this you could try to use websocket communication - in this case it is a persistent connection and you have this waiting time just once.

@squonk11
Copy link
Contributor

squonk11 commented Oct 11, 2022 via email

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

No branches or pull requests

2 participants