espressif / ESP8266_RTOS_SDK

Latest ESP8266 SDK based on FreeRTOS, esp-idf style.
http://bbs.espressif.com
Apache License 2.0
3.32k stars 1.56k forks source link

ESP8266 WEB HTTPS SERVER (GIT8266O-542) #965

Open shun-dgut opened 4 years ago

shun-dgut commented 4 years ago

I want to set up an https web server in esp8266. I copied examples/protocols/httpsserver from the IDF of esp32(the components are also copied, and delete the components/https server/include/esp https server.h HTTPD_SSL_CONFIG_DEFAULT() .uri_match_fn = NULL ), but the following problem occurs.

My esp8266rtos is 3.3

[2020-09-10 13:26:09.618]# RECV ASCII> I (5839) esp_https_server: Server listening on port 443 I (5842) APP: Registering URI handlers

[2020-09-10 13:29:25.626]# RECV ASCII> W (201784) esp_https_server: fail to SSL_accept - handshake error W (201789) httpd: httpd_accept_conn: session creation failed W (201794) httpd: httpd_server: error accepting new connection E (201801) httpd: httpd_server: error in select (0) E (201810) httpd: httpd_server: error in select (0) E (201818) httpd: httpd_server: error in select (0) E (201827) httpd: httpd_server: error in select (0) E (201835) httpd: httpd

Zmmfly commented 4 years ago

我现在也是这样做的,但是还没有实际验证,把ESP32 IDF的http_server也同步移植过来 uri_match_fn恢复原状,看能解决问题不