Skip to content

FTP server crashes on terminate when uploads are in progress

This appears to due to this change:

7c89ace7

Which results in the receive_thread (possibly the send_thread) using invalid pointer members of xfer_t (e.g. user, client) because that/those threads are still running after the ctrl_thread terminates.

The waiting loop after "Waiting for transfer to complete..." was basically defeated by that change above.