mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Merge pull request #2565 from cesanta/backlog
Set default listen backlog size back to 128
This commit is contained in:
3 files changed
+8
-2
No files matched your search
+4
-1
@@ -318,6 +318,9 @@ static inline int mg_mkdir(const char *path, mode_t mode) {
|
|||||||
!defined MG_ENABLE_RL && (!defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP) && \
|
!defined MG_ENABLE_RL && (!defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP) && \
|
||||||
(!defined(MG_ENABLE_TCPIP) || !MG_ENABLE_TCPIP)
|
(!defined(MG_ENABLE_TCPIP) || !MG_ENABLE_TCPIP)
|
||||||
#define MG_ENABLE_RL 1
|
#define MG_ENABLE_RL 1
|
||||||
|
#ifndef MG_SOCK_LISTEN_BACKLOG_SIZE
|
||||||
|
#define MG_SOCK_LISTEN_BACKLOG_SIZE 3
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -783,7 +786,7 @@ struct timeval {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MG_SOCK_LISTEN_BACKLOG_SIZE
|
#ifndef MG_SOCK_LISTEN_BACKLOG_SIZE
|
||||||
#define MG_SOCK_LISTEN_BACKLOG_SIZE 3
|
#define MG_SOCK_LISTEN_BACKLOG_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MG_DIRSEP
|
#ifndef MG_DIRSEP
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ static inline int mg_mkdir(const char *path, mode_t mode) {
|
|||||||
!defined MG_ENABLE_RL && (!defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP) && \
|
!defined MG_ENABLE_RL && (!defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP) && \
|
||||||
(!defined(MG_ENABLE_TCPIP) || !MG_ENABLE_TCPIP)
|
(!defined(MG_ENABLE_TCPIP) || !MG_ENABLE_TCPIP)
|
||||||
#define MG_ENABLE_RL 1
|
#define MG_ENABLE_RL 1
|
||||||
|
#ifndef MG_SOCK_LISTEN_BACKLOG_SIZE
|
||||||
|
#define MG_SOCK_LISTEN_BACKLOG_SIZE 3
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
+1
-1
@@ -110,7 +110,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MG_SOCK_LISTEN_BACKLOG_SIZE
|
#ifndef MG_SOCK_LISTEN_BACKLOG_SIZE
|
||||||
#define MG_SOCK_LISTEN_BACKLOG_SIZE 3
|
#define MG_SOCK_LISTEN_BACKLOG_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MG_DIRSEP
|
#ifndef MG_DIRSEP
|
||||||
|
|||||||
Reference in new issue
Block a user