* src/FtpNegotiateCommand.cc

(recvGreeting): Call disableWriteCheckSocket just after
	socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
	(recvRetr): Recognized status code 125 as a acceptable response 
code.
pull/1/head
Tatsuhiro Tsujikawa 2006-08-07 17:21:09 +00:00
parent d0068e5a9c
commit 19a21795e0
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,8 @@
* src/FtpNegotiateCommand.cc
(recvGreeting): Call disableWriteCheckSocket just after
socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
(recvRetr): Recognized status code 125 as a acceptable response code.
Rename Time.h to TimeA2.h to avoid compilation ploblem on
case-insesitive filesystem(BUG#1531057).

View File

@ -264,7 +264,7 @@ bool FtpNegotiationCommand::recvRetr() {
if(status == 0) {
return false;
}
if(status != 150) {
if(status != 150 && status != 125) {
throw new DlRetryEx(EX_BAD_STATUS, status);
}
if(e->option->get(PREF_FTP_PASV_ENABLED) != V_TRUE) {