1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

lwip: handle ECONNABORTED on tls read

This commit is contained in:
Yichen Gu 2021-05-17 10:40:34 +01:00 committed by Andy Green
parent 9c6e2ffb65
commit febca16a0b
2 changed files with 6 additions and 0 deletions

View file

@ -94,6 +94,7 @@ typedef SemaphoreHandle_t lws_mutex_t;
#define LWS_ENOTCONN ENOTCONN
#define LWS_EWOULDBLOCK EWOULDBLOCK
#define LWS_EADDRINUSE EADDRINUSE
#define LWS_ECONNABORTED ECONNABORTED
#define lws_set_blocking_send(wsi)

View file

@ -75,6 +75,11 @@ lws_ssl_capable_read(struct lws *wsi, unsigned char *buf, size_t len)
/* If the socket isn't connected anymore, bail out. */
goto do_err1;
#if defined(LWS_PLAT_FREERTOS)
if (errno == LWS_ECONNABORTED)
goto do_err1;
#endif
if (m == SSL_ERROR_ZERO_RETURN ||
m == SSL_ERROR_SYSCALL)
goto do_err;