I'm testing an FTP server it based on Freescale demo.
Normally the system works perfectly.
The problem arises when I try special cases, in my case when I want to transfer a file, open the second ftps port and just before running the rtcs accept routines I break the connection of the client (by removing the Ethernet cable from the PC client side).
So the Kinetis does not go out of the rtcs accept's routine blocking the ftp server indefinitely.
Kindly you know how can I do to make this routine non-blocking?