We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87c35d4 commit a8c9b2fCopy full SHA for a8c9b2f
components/net/at/at_socket/at_socket.c
@@ -385,6 +385,9 @@ int at_closesocket(int socket)
385
return -1;
386
}
387
388
+ /* deal with TCP server actively disconnect */
389
+ rt_thread_delay(rt_tick_from_millisecond(100));
390
+
391
sock = at_get_socket(socket);
392
if (sock == RT_NULL)
393
{
@@ -401,6 +404,7 @@ int at_closesocket(int socket)
401
404
if (at_dev_ops->at_closesocket(socket) != 0)
402
405
403
406
LOG_E("AT socket (%d) closesocket failed!", socket);
407
+ return -1;
408
409
410
@@ -427,6 +431,7 @@ int at_shutdown(int socket, int how)
427
431
428
432
429
433
LOG_E("AT socket (%d) shutdown failed!", socket);
434
430
435
436
437
0 commit comments