adafruit / Adafruit_CircuitPython_Wiznet5k

Pure-Python interface for WIZNET 5k Ethernet modules
Other
15 stars 37 forks source link

Fix socket swap in socket.accept() #130

Closed fasteddy516 closed 1 year ago

fasteddy516 commented 1 year ago

Closes #129. Prevents listening for connections on hardware socket 0 and marking unused sockets as reserved when socket.accept() is called and hardware socket 0 is available.

Tested with CircuitPython 8.2.0-rc.1 on a Raspberry Pi Pico with WIZnet Ethernet Hat (w5100s chipset) using my CircuitPython WIZnet5k Socket Visualizer.