summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2023-11-09 10:30:23 +1100
committerDamien George <damien@micropython.org>2023-11-20 19:16:16 +1100
commitfce8d9fd55409ab1027beee5671bc653fb5beb97 (patch)
tree3fa0aa6cc141009956c0bb0f42b9d1d648254e88 /py
parent57cce79a46f6ab7e990a626251ca8f9d59cd095a (diff)
esp32/modsocket: Try garbage collection if the socket limit is reached.
If the hard socket limit (default 16) is reached then it's possible that socket allocation fails but garbage collection would allow it to succeed. Perform a GC pass and try again before giving up, similar to the logic elsewhere in MicroPython that tries a GC pass before raising MemoryError. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'py')
0 files changed, 0 insertions, 0 deletions