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:
parent
9c6e2ffb65
commit
febca16a0b
2 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue