Merge pull request #3649 from cesanta/frt

handle (more) FreeRTOS proprietary return codes
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2026-07-27 17:13:33 -03:00
commit 2db7119080
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -1106,7 +1106,8 @@ static inline void *mg_calloc(size_t cnt, size_t size) {
((errcode) == -pdFREERTOS_ERRNO_EWOULDBLOCK || \
(errcode) == -pdFREERTOS_ERRNO_EISCONN || \
(errcode) == -pdFREERTOS_ERRNO_EINPROGRESS || \
(errcode) == -pdFREERTOS_ERRNO_EAGAIN)
(errcode) == -pdFREERTOS_ERRNO_EAGAIN || \
(errcode) == -pdFREERTOS_ERRNO_ENOSPC)
#define MG_SOCK_RESET(errcode) ((errcode) == -pdFREERTOS_ERRNO_ENOTCONN)
+2 -1
View File
@@ -29,7 +29,8 @@
((errcode) == -pdFREERTOS_ERRNO_EWOULDBLOCK || \
(errcode) == -pdFREERTOS_ERRNO_EISCONN || \
(errcode) == -pdFREERTOS_ERRNO_EINPROGRESS || \
(errcode) == -pdFREERTOS_ERRNO_EAGAIN)
(errcode) == -pdFREERTOS_ERRNO_EAGAIN || \
(errcode) == -pdFREERTOS_ERRNO_ENOSPC)
#define MG_SOCK_RESET(errcode) ((errcode) == -pdFREERTOS_ERRNO_ENOTCONN)