HTTPS Server keep creating new connections

teckhaokoh
Posts: 34
Joined: Wed Sep 21, 2016 6:40 am

HTTPS Server keep creating new connections

Postby teckhaokoh » Mon Aug 30, 2021 3:08 am

I'm having a HTTP server using esp-idf's esp_http_server library and it's working well.
When I enable the same code with the HTTPS server using esp_https_server, I found that it keep creating new connections for the same web page with a lot javascript and css files.
This make my web page load very very slow, as compared to HTTP version.

Is that expected or I may did something wrong with the HTTPS server?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: HTTPS Server keep creating new connections

Postby WiFive » Mon Aug 30, 2021 3:57 am

Yes ssl handshake is slow

teckhaokoh
Posts: 34
Joined: Wed Sep 21, 2016 6:40 am

Re: HTTPS Server keep creating new connections

Postby teckhaokoh » Tue Aug 31, 2021 4:07 am

Any way of making the HTTPS server reuse the same connection for the requests?

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 99 guests