Fix secure TCP connections

Call `espconn_secure_set_size()` before calling `esp_secure_connect()`, should fix issues like #710 and #520
This commit is contained in:
Uri Shaked 2016-02-06 17:12:46 +02:00
parent fcb14a33b3
commit ce498462f7
1 changed files with 1 additions and 0 deletions

View File

@ -594,6 +594,7 @@ static void socket_connect(struct espconn *pesp_conn)
{
#ifdef CLIENT_SSL_ENABLE
if(nud->secure){
espconn_secure_set_size(ESPCONN_CLIENT, 5120); /* set SSL buffer size */
espconn_secure_connect(pesp_conn);
}
else