diff options
| author | Damien George <damien@micropython.org> | 2022-04-04 23:07:35 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-04-11 15:28:56 +1000 |
| commit | aab005c75b7d8b1f06a3294ce7a5d86edea24594 (patch) | |
| tree | 0a91601e4a0b1dfe0f66a702861f6d2c84ea7432 /py | |
| parent | 919f696ad254bcc39effe7ce7fddae8cf406c954 (diff) | |
extmod/modusocket: Provide config macro for socket.listen backlog deflt.
To make it possible to change this value for any given port or board.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py')
| -rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 47c16ed96..754daa7bd 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1593,6 +1593,11 @@ typedef double mp_float_t; #define MICROPY_PY_MACHINE_SOFTSPI (0) #endif +// The default backlog value for socket.listen(backlog) +#ifndef MICROPY_PY_USOCKET_LISTEN_BACKLOG_DEFAULT +#define MICROPY_PY_USOCKET_LISTEN_BACKLOG_DEFAULT (2) +#endif + #ifndef MICROPY_PY_USSL #define MICROPY_PY_USSL (0) #endif |
