esp-idf/components
Wu Jian Gang 7f2c6a9d80 Merge branch 'bugfix/tw8770_fix_socket_memory_leak' into 'master'
lwip: fix socket memory leak issue

1. Add socket memory leak debug counter
2. Fix TCP PCB leak issue
    Currently ESP32 support maximum 16 TCP PCBs and all TCP PCB are allocated from heap memory. In some scenario, we may
    have memory leak issue,  for example, the application already created 16 TCP PCB, then it close 5 of them, because the TCP
    state machine, the LWIP core may not free all the 5 TCP PCB immediately, maybe some is in TIME_WAIT status, some is in 
    FIN_WAIT_1 etc. Then the application try to malloc 17th TCP PCB (the application think they just create 12 because they already
    close 5), memp_malloc() will return true because the heap is not out of memory, but actually we got 17 TCP PCB. When the 
    scenario repeat again and again (in our Audio application, it repeat more than 10000 times), more and more TCP PCB will be
    created in the system, each TCP PCB require 200B, then memory leak happen (In Audio application, I saw more than 26 TCP PCB
    are created, and 10*200=2K memory are leaked).

See merge request !223
2016-11-25 13:44:02 +08:00
..
bootloader add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
bootloader_support mbedTLS SHA acceleration: Allow concurrent digest calculation, works with TLS 2016-11-22 20:42:38 +11:00
bt implement esp_deep_sleep, fix build issues 2016-11-22 21:54:49 +08:00
driver Merge branch 'driver_merge_tmp/merge_timer' into 'master' 2016-11-25 10:52:40 +08:00
esp32 Merge branch 'driver_merge_tmp/merge_timer' into 'master' 2016-11-25 10:52:40 +08:00
esptool_py build system: Refactor SubmoduleCheck to work project-wide 2016-11-17 09:18:51 +11:00
expat Build system: Raise warning level 2016-11-16 15:57:34 +11:00
freertos Merge branch 'bugfix/ringbuffer_item_return_bug_report_from_chunguang' into 'master' 2016-11-25 09:31:20 +08:00
idf_test remove unexisting tests in unit test CIConfig 2016-11-23 16:22:51 +08:00
json build system: Refactor component.mk to not need component_common.mk 2016-11-10 15:52:22 +11:00
log catch log output from WiFi libs 2016-11-22 21:14:36 +08:00
lwip Merge branch 'bugfix/tw8770_fix_socket_memory_leak' into 'master' 2016-11-25 13:44:02 +08:00
mbedtls Merge branch 'feature/sha_tls_integration' into 'master' 2016-11-25 10:12:29 +08:00
micro-ecc micro-ecc: Add submodule dependency 2016-11-17 09:18:51 +11:00
newlib Merge branch 'feature/system_apis' into 'master' 2016-11-24 18:22:50 +08:00
nghttp build system: Refactor component.mk to not need component_common.mk 2016-11-10 15:52:22 +11:00
nvs_flash add updated nvs flash test 2016-11-23 11:29:36 +08:00
openssl remove legacy definitions from esp_types.h 2016-11-22 21:14:36 +08:00
partition_table add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
spi_flash spi_flash_erase_range: Allow for 32KB blocks not 64KB blocks 2016-11-24 18:05:06 +11:00
tcpip_adapter ipv6 interface: add branch for ipv6 interface 2016-11-21 11:06:51 +08:00
vfs docs: fix Doxygen warnings, fail CI build on Doxygen warnings 2016-11-16 22:44:22 +08:00
wpa_supplicant Add API for random number generator 2016-11-22 21:14:37 +08:00
xtensa-debug-module build system: Refactor component.mk to not need component_common.mk 2016-11-10 15:52:22 +11:00