mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 13:10:21 +01:00
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>