Skip to content

Commit f1112aa

Browse files
committed
Merge branch 'feature/sync_ping_v3.1' into 'release/v3.1'
fix(lwip): Fix UDP sync register messsage error (backport v3.1) See merge request sdk/ESP8266_RTOS_SDK!934
2 parents 384bcd9 + 11ca1bb commit f1112aa

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

components/lwip/port/esp8266/freertos/udp_sync.c

+5
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ void udp_sync_ack_sock(void *in_msg)
256256
struct api_msg *msg = (struct api_msg *)in_msg;
257257
struct udp_pcb *pcb = _get_msg_pcb(msg);
258258

259+
if (UDP_SYNC_NONE == s_msg_type) {
260+
TCPIP_APIMSG_ACK(msg);
261+
return ;
262+
}
263+
259264
ret = _udp_sync_ack_sock_ret(msg, 0);
260265
if (ret == ERR_OK && _udp_need_proc(pcb)) {
261266
udp_sync_method_t *method = (udp_sync_method_t *)_udp_priv_data(pcb);

components/lwip/port/esp8266/include/lwipopts.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1291,21 +1291,21 @@ size_t memp_malloc_get_size(size_t type);
12911291
* The stack size value itself is platform-dependent, but is passed to
12921292
* sys_thread_new() when the thread is created.
12931293
*/
1294-
#define DEFAULT_THREAD_STACKSIZE 0
1294+
#define DEFAULT_THREAD_STACKSIZE TCPIP_THREAD_STACKSIZE
12951295

12961296
/**
12971297
* DEFAULT_THREAD_PRIO: The priority assigned to any other lwIP thread.
12981298
* The priority value itself is platform-dependent, but is passed to
12991299
* sys_thread_new() when the thread is created.
13001300
*/
1301-
#define DEFAULT_THREAD_PRIO 1
1301+
#define DEFAULT_THREAD_PRIO TCPIP_THREAD_PRIO
13021302

13031303
/**
13041304
* DEFAULT_RAW_RECVMBOX_SIZE: The mailbox size for the incoming packets on a
13051305
* NETCONN_RAW. The queue size value itself is platform-dependent, but is passed
13061306
* to sys_mbox_new() when the recvmbox is created.
13071307
*/
1308-
#define DEFAULT_RAW_RECVMBOX_SIZE 0
1308+
#define DEFAULT_RAW_RECVMBOX_SIZE 6
13091309

13101310
/**
13111311
* DEFAULT_UDP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a

0 commit comments

Comments
 (0)