diff options
author | Damien George <damien.p.george@gmail.com> | 2019-07-03 15:50:13 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-07-03 15:50:13 +1000 |
commit | 1d6cb6357a2cde40822712211fb51c4a4bbe41cf (patch) | |
tree | 27ba5af3612a7138aaaa65b5a1690f81710d5dd9 /py/stackctrl.c | |
parent | ef00048fed079c922a4e2bc9ce854cc3824e2bfc (diff) |
extmod/modlwip: For TCP send keep trying tcp_write if it returns ERR_MEM
If tcp_write returns ERR_MEM then it's not a fatal error but instead means
the caller should retry the write later on (and this is what lwIP's netconn
API does).
This fixes problems where a TCP send would raise OSError(ENOMEM) in
situations where the TCP/IP stack is under heavy load. See eg issues #1897
and #1971.
Diffstat (limited to 'py/stackctrl.c')
0 files changed, 0 insertions, 0 deletions