mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
Use MG_SOCK_LISTEN_BACKLOG_SIZE -> 128 for FreeRTOS-TCP
This commit is contained in:
parent
3b95671442
commit
a84465ddba
@ -293,6 +293,12 @@ struct timeval {
|
|||||||
#define EINTR pdFREERTOS_ERRNO_EINTR
|
#define EINTR pdFREERTOS_ERRNO_EINTR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// FreeRTOS-TCP uses non-standard semantics for listen() backlog size. It is
|
||||||
|
// not a backlog size for pending SYN connections, but a max socket number
|
||||||
|
#ifndef MG_SOCK_LISTEN_BACKLOG_SIZE
|
||||||
|
#define MG_SOCK_LISTEN_BACKLOG_SIZE 128
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // MG_ARCH == MG_ARCH_FREERTOS_TCP
|
#endif // MG_ARCH == MG_ARCH_FREERTOS_TCP
|
||||||
|
|
||||||
|
|
||||||
|
@ -82,4 +82,10 @@ struct timeval {
|
|||||||
#define EINTR pdFREERTOS_ERRNO_EINTR
|
#define EINTR pdFREERTOS_ERRNO_EINTR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// FreeRTOS-TCP uses non-standard semantics for listen() backlog size. It is
|
||||||
|
// not a backlog size for pending SYN connections, but a max socket number
|
||||||
|
#ifndef MG_SOCK_LISTEN_BACKLOG_SIZE
|
||||||
|
#define MG_SOCK_LISTEN_BACKLOG_SIZE 128
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // MG_ARCH == MG_ARCH_FREERTOS_TCP
|
#endif // MG_ARCH == MG_ARCH_FREERTOS_TCP
|
||||||
|
Loading…
Reference in New Issue
Block a user