mirror of
https://github.com/winscp/winscp.git
synced 2026-10-24 02:28:55 +03:00
Bug 1520: Resuming file upload in active FTP mode does not work on some servers
https://winscp.net/tracker/1520 Source commit: afc9ffb1285b87147aaa223a89c65b26fbd0af0f
This commit is contained in:
@@ -4257,8 +4257,7 @@ void CFtpControlSocket::FileTransfer(t_transferfile *transferfile/*=0*/,BOOL bFi
|
||||
m_pTransferSocket->m_transferdata=pData->transferdata;
|
||||
// not sure what happens when we active transfer socket immediately while resuming
|
||||
// it can possibly make transfer socket start reading from a file before a file pointer is advanced
|
||||
if (GetOptionVal(OPTION_MPEXT_TRANSFER_ACTIVE_IMMEDIATELY) ||
|
||||
((pData->transferfile.get || !pData->transferdata.bResume) && !pData->bPasv))
|
||||
if (GetOptionVal(OPTION_MPEXT_TRANSFER_ACTIVE_IMMEDIATELY) || !pData->bPasv)
|
||||
{
|
||||
m_pTransferSocket->SetActive();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user