RT-Thread-packages / at_device

AT component porting or samples for different devices
Apache License 2.0
215 stars 181 forks source link

esp8266 socket_send问题 #198

Closed sol0303 closed 7 months ago

sol0303 commented 1 year ago

at_socket_esp8266.c中,每调用一次esp8266_socket_send,都会调用at_obj_set_urc_table。at_obj_set_urc_table会通过rt_realloc反复申请内存。最终导致堆没有空间。

qiyongzhong0 commented 1 year ago

urc_table只增不减,是个严重问题。在socket_init中调一次就行了,没必要在send和listen函数中调用。

yangpengya commented 11 months ago

203