I found a solution to my problem.I add a socket option (FTPDCFG_RECEIVE_TIMEOUT) in FTPd_task.
Something like :
(around line 150)
if (!error) {
option = FTPDCFG_CONNECT_TIMEOUT;
error = setsockopt(listensock, SOL_TCP, OPT_CONNECT_TIMEOUT, &option, sizeof(option));
}
if (!error) {
option = FTPDCFG_TIMEWAIT_TIMEOUT;
error = setsockopt(listensock, SOL_TCP, OPT_TIMEWAIT_TIMEOUT, &option, sizeof(option));
}
if (!error) {
option = FTPDCFG_RECEIVE_TIMEOUT; // Set this value to what you need (360000 for 6 minute, for me)
error = setsockopt(listensock, SOL_TCP, OPT_RECEIVE_TIMEOUT, &option, sizeof(option));
}
if (!error) {
error = bind(listensock, (const sockaddr *)&laddr, sizeof(laddr));
}
if (!error) {
error = listen(listensock, 0);
}
if (error) {
RTCS_task_exit(creator, error);
}
RTCS_task_resume_creator(creator, RTCS_OK);
So, ftpd exit after no trafic during 6 min.
:smileyhappy: