From c85069f9fc25a8a7e166fb9e738256a77a2a2669 Mon Sep 17 00:00:00 2001 From: xiao-mang <53597406+xiao-mang@users.noreply.github.com> Date: Fri, 25 Aug 2023 07:35:19 +0800 Subject: [PATCH] fix lwip (#7969) --- components/net/lwip/port/sys_arch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/net/lwip/port/sys_arch.c b/components/net/lwip/port/sys_arch.c index 8eb46e7a76..493ba4e893 100644 --- a/components/net/lwip/port/sys_arch.c +++ b/components/net/lwip/port/sys_arch.c @@ -408,8 +408,9 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout) else t = timeout / (1000 / RT_TICK_PER_SECOND); } - - ret = rt_mb_recv(*mbox, (rt_ubase_t *)msg, t); + /*When the waiting msg is generated by the application through signaling mechanisms, + only by using interruptible mode can the program be made runnable again*/ + ret = rt_mb_recv_interruptibale(*mbox, (rt_ubase_t *)msg, t); if(ret != RT_EOK) { return SYS_ARCH_TIMEOUT;