For information, I was working on a code derived from your work

I found here : https://github.com/lemariva/uPyPortal/b ... ter/ftp.py
I wanted to have it managed by a background thread and with automatic restart.
No way to do this rock solid in face of Ctrl+C and Ctrl + D with my current knowledge.
Thus I am going to Loboris Micropython. With his C code, when Ctrl + D, the thread restarts with no problem
