Comment 4 for bug 447224

Revision history for this message
Tim Kosse (tim-kosse) wrote :

This problem is caused by a race condition in the socket class of FileZilla.

Happens if CSocket::Disconnect() get called between the worker thread's call to getaddrinfo and re-obtaining the lock. In that case the worker thread continues to connect and ultimately sets the socket state to connected, despite the previous call to Disconnect.

The attached patch solves this problem.