Memory Leak/Usage

gustavo
Posts: 24
Joined: Thu Apr 28, 2016 6:01 pm

Re: Memory Leak/Usage

Postby gustavo » Thu Nov 03, 2016 8:54 pm

Hi,
I'm having the same problem as OP.

I'm running the "OS SDK ver: 1.4.0(c599790) compiled @ Mar 1 2016 17:25:17" sdk version.

No matter where I put the

Code: Select all

espconn_set_opt(connPtr, ESPCONN_REUSEADDR);
there's always some pending bytes that don't get freed after disconnect.

Code: Select all

system_get_free_heap_size: 9632.
Client connected.
Request received.
Response sent.
Client disconnected.
system_get_free_heap_size: 9408.


Is there a patch needed for RTOS as well?

ritesh
Posts: 29
Joined: Thu Nov 05, 2015 4:32 pm
Location: India
Contact:

Re: Memory Leak/Usage

Postby ritesh » Thu Mar 02, 2017 10:38 pm

Hi All,

We are using ESP RTOS SDK 1.5.0 and ported OpenSSL from espressif/esp8266-rtos-sample-code from Github.

Both OpenSSL Client and Server programs executed successfully but consumes almost 30 KB to 33 KB of Heap Memory. Once we free SSL then we can get original memory which are available when we started example.

Also, There are 2 static library OpenSSL and EmbedTLS Libraries are used to execute OpenSSL Client/Server Program.

Doe anyone has any idea for why it consumes that much of memory? If possible then provide any other low memory consume library for secure connection like OpenSSL.
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: No registered users and 4 guests