зеркало из https://github.com/mozilla/pjs.git
backing out fix for bug 141451, r=dougt
This commit is contained in:
Родитель
4769f79c52
Коммит
419b5dcf2b
|
@ -1537,12 +1537,7 @@ nsFtpState::S_retr() {
|
||||||
|
|
||||||
if (!mDRequestForwarder)
|
if (!mDRequestForwarder)
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
|
|
||||||
// bug 141451 - We call this before receiving the error because on some
|
|
||||||
// systems the error closes the mDRequestForwarder data socket faster
|
|
||||||
// than we can process the control channel’s error code.
|
|
||||||
mDRequestForwarder->SetRetrying(PR_TRUE);
|
|
||||||
|
|
||||||
rv = SendFTPCommand(retrStr);
|
rv = SendFTPCommand(retrStr);
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
@ -1584,6 +1579,7 @@ nsFtpState::R_retr() {
|
||||||
|
|
||||||
if (mResponseCode/100 == 5) {
|
if (mResponseCode/100 == 5) {
|
||||||
mRETRFailed = PR_TRUE;
|
mRETRFailed = PR_TRUE;
|
||||||
|
mDRequestForwarder->SetRetrying(PR_TRUE);
|
||||||
return FTP_S_PASV;
|
return FTP_S_PASV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче