forked from Spritetm/libesphttpd
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Problem with SSL mode. #67
Comments
Hi @marbalon what is the issue you are seeing? Is the listen failing? |
The problem is long SSL_Accept - about 11seconds. Test above was made using wget command, but chrome restarts request every 5seconds. D (13948) httpd-freertos: SSL server accept client ..... //waiting 11 seconds |
That’s pretty typical. The key exchange is a computationally expensive
process. I’m guessing we could specify our preference for faster key
approaches, if supported by mbedtls, to speed this up, but this kind of
time is what I’ve always seen on ssl connections on esp32.
Has it been quicker for you in the past?
Chris
…On Tue, Jun 18, 2019 at 1:48 AM marbalon ***@***.***> wrote:
The problem is long SSL_Accept - about 11seconds. Test above was made
using wget command, but chrome restarts request every 5seconds.
D (13948) httpd-freertos: SSL server accept client ..... //waiting 11
seconds
D (24388) httpd-freertos: OK
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#67?email_source=notifications&email_token=AAJH4ABCJT6GDWS4YSO2C3TP3BZJJA5CNFSM4HYWEQS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX5IEXQ#issuecomment-502956638>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJH4AHCN2RZBLNGHZD6HETP3BZJJANCNFSM4HYWEQSQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have libesphttpd working find on ESP32 + esp-idf 3.3. Today I tried to enable SSL support. I got logs and everything seems to work fine but SSL_accept takes about 11 second...(see logs below). This is not the latest version, but I didn't see any commits related with this. My current version is 51084e0. About 140kb RAM free before I call https request.
Any ideas to solve this problem ?
``
I (10618) httpd-freertos: address 0.0.0.0, port 443, maxConnections 16, mode ssl
I (10618) httpd-freertos: SSL server context create ......
I (10618) httpd-freertos: OK
I (10618) httpd-freertos: SSL server context setting ca certificate......
I (10628) httpd-freertos: OK
I (10628) httpd-freertos: SSL server context setting private key......
I (10958) httpd-freertos: init
I (11018) httpd-freertos: esphttpd: active and listening to connections on 0.0.0.0
D (11018) httpd-freertos: Sel add listen 54
I (11018) httpd-freertos: listening for new connections on '0.0.0.0'
D (13948) httpd-freertos: select ret
D (13948) httpd-freertos: SSL server create .....
D (13948) httpd-freertos: OK
D (13948) httpd-freertos: SSL server accept client .....
D (24388) httpd-freertos: OK
D (24388) httpd-freertos: Sel add listen 54
D (24498) httpd-freertos: select ret
``
Thanks Marcin.
The text was updated successfully, but these errors were encountered: