Skip to content

Commit 25a9c26

Browse files
committed
fix(socket_mt): disable real "shutdown" function
internal: b3e8a313
1 parent 408104d commit 25a9c26

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ gwen:
1313
gitlab:
1414
espconn: 3a998034
1515
freertos: a9985a9c
16-
lwip: 391bef1e
16+
lwip: 1651e055
1717
driver: 7bee5263
1818
mbedtls: 1ac9f1f4
1919
ssl: eefb383a

lib/liblwip.a

-248 Bytes
Binary file not shown.

third_party/lwip/api/multi-threads/sockets_mt.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ int lwip_fcntl_mt(int s, int cmd, int val)
832832
return ret;
833833
}
834834

835-
int lwip_shutdown_mt(int s, int how)
835+
LOCAL int __lwip_shutdown_mt(int s, int how)
836836
{
837837
int ret;
838838

@@ -847,14 +847,19 @@ int lwip_shutdown_mt(int s, int how)
847847
return ret;
848848
}
849849

850+
int lwip_shutdown_mt(int s, int how)
851+
{
852+
return lwip_shutdown(s, how);
853+
}
854+
850855
int lwip_close_mt(int s)
851856
{
852857
int ret;
853858
int i;
854859
SYS_ARCH_DECL_PROTECT(lev);
855860
sys_mutex_t lock_tmp[SOCK_MT_LOCK_MAX];
856861

857-
lwip_shutdown_mt(s, SHUT_RDWR);
862+
__lwip_shutdown_mt(s, SHUT_RDWR);
858863

859864
LWIP_ENTER_MT(s, SOCK_MT_CLOSE, 0);
860865

0 commit comments

Comments
 (0)