ESP8266 Developer Zone The Official ESP8266 Forum 2017-05-28T12:42:08+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=4649 2017-05-28T12:42:08+08:00 2017-05-28T12:42:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4649&p=13464#p13464 <![CDATA[Re: SSL Server only sends once and then throws error -5]]>
Replied to the Git Issue with test code. Let me know if you need anything else.

Statistics: Posted by davydnorris — Sun May 28, 2017 12:42 pm


]]>
2017-05-28T10:19:33+08:00 2017-05-28T10:19:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4649&p=13461#p13461 <![CDATA[Re: SSL Server only sends once and then throws error -5]]>
Can you provide the test code for debugging?

Thanks for your interest in ESP8266!

Statistics: Posted by ESP_Faye — Sun May 28, 2017 10:19 am


]]>
2017-05-20T10:10:01+08:00 2017-05-20T10:10:01+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4649&p=13282#p13282 <![CDATA[SSL Server only sends once and then throws error -5]]>
Checking the recv callback and the connection state shows that the connection is fine and is not in progress. I'm using the latest NonOS SDK 2.1.0

This post has had exactly the same problem: http://bbs.espressif.com/viewtopic.php?f=16&t=3423

This is a debug dump of the esphttpd server callbacks and functions as I first try https://<server>/ (which redirects to /index.tpl), and then I try https://<server>/wifi (which goes to /wifi/wifi.tpl).

Code:

server handshake start.
server handshake ok!
Conn... port = 443, state = 3
Conn req from  10.1.1.7:61075, using pool slot 0
ConS... port = 443, state = 3
Recv... port = 443, state = 5
URL = /
Is url index 0
Is url index 1
Pool slot 0 is done. Cleaning up for next req
RTSn... port = 443, state= 5
Sending... port = 443, len = 128, state= 4, ret = 0
Sent... port = 443, state = 3
Recv... port = 443, state = 5
URL = /index.tpl
Is url index 0
Is url index 3
Heatshrink compressed file; decode parms = b4
RTSn... port = 443, state= 5
Sending... port = 443, len = 99, state= 4, ret = -5
Disc... port = 443, state = 6
Pool slot 0: socket closed.
server handshake start.
server handshake ok!
Conn... port = 443, state = 3
Conn req from  10.1.1.7:61076, using pool slot 0
ConS... port = 443, state = 3
Recv... port = 443, state = 5
URL = /index.tpl
Is url index 0
Is url index 3
Heatshrink compressed file; decode parms = b4
RTSn... port = 443, state= 5
Sending... port = 443, len = 99, state= 4, ret = 0
Sent... port = 443, state = 3
RTSn... port = 443, state= 3
Sending... port = 443, len = 1024, state= 4, ret = -5
Disc... port = 443, state = 6
Pool slot 0: socket closed.
server handshake start.
server handshake ok!
Conn... port = 443, state = 3
Conn req from  10.1.1.7:61077, using pool slot 0
ConS... port = 443, state = 3
Recv... port = 443, state = 5
URL = /wifi/
Is url index 0
Is url index 9
Pool slot 0 is done. Cleaning up for next req
RTSn... port = 443, state= 5
Sending... port = 443, len = 136, state= 4, ret = 0
Sent... port = 443, state = 3
Recv... port = 443, state = 5
URL = /wifi/wifi.tpl
Is url index 0
Is url index 11
Heatshrink compressed file; decode parms = b4
RTSn... port = 443, state= 5
Sending... port = 443, len = 99, state= 4, ret = -5
Disc... port = 443, state = 6
Pool slot 0: socket closed.
server handshake start.
server handshake ok!
Conn... port = 443, state = 3
Conn req from  10.1.1.7:61078, using pool slot 0
ConS... port = 443, state = 3
Recv... port = 443, state = 5
URL = /wifi/wifi.tpl
Is url index 0
Is url index 11
Heatshrink compressed file; decode parms = b4
RTSn... port = 443, state= 5
Sending... port = 443, len = 99, state= 4, ret = 0
Sent... port = 443, state = 3
RTSn... port = 443, state= 3
Sending... port = 443, len = 1031, state= 4, ret = -5
Disc... port = 443, state = 6
Pool slot 0: socket closed.

Statistics: Posted by davydnorris — Sat May 20, 2017 10:10 am


]]>