Updated doc

pull/1/head
Tatsuhiro Tsujikawa 2011-03-18 22:45:25 +09:00
parent c1c3f2d77a
commit d8585fd6eb
4 changed files with 7 additions and 7 deletions

View File

@ -76,7 +76,7 @@ bool HttpListenCommand::execute()
std::pair<std::string, uint16_t> peerInfo; std::pair<std::string, uint16_t> peerInfo;
socket->getPeerInfo(peerInfo); socket->getPeerInfo(peerInfo);
A2_LOG_INFO(fmt("XML-RPC: Accepted the connection from %s:%u.", A2_LOG_INFO(fmt("RPC: Accepted the connection from %s:%u.",
peerInfo.first.c_str(), peerInfo.second)); peerInfo.first.c_str(), peerInfo.second));
HttpServerCommand* c = HttpServerCommand* c =
@ -113,7 +113,7 @@ bool HttpListenCommand::bindPort(uint16_t port)
e_->addSocketForReadCheck(serverSocket_, this); e_->addSocketForReadCheck(serverSocket_, this);
return true; return true;
} catch(RecoverableException& e) { } catch(RecoverableException& e) {
A2_LOG_ERROR(fmt("Failed to setup XML-RPC server for IPv%d", A2_LOG_ERROR(fmt("Failed to setup RPC server for IPv%d",
family_ == AF_INET?4:6)); family_ == AF_INET?4:6));
A2_LOG_ERROR_EX(fmt(MSG_BIND_FAILURE, A2_LOG_ERROR_EX(fmt(MSG_BIND_FAILURE,
getCuid(), port), getCuid(), port),

View File

@ -133,7 +133,7 @@ bool HttpServerCommand::execute()
(e_->getOption()->getAsInt(PREF_RPC_MAX_REQUEST_SIZE)) < (e_->getOption()->getAsInt(PREF_RPC_MAX_REQUEST_SIZE)) <
httpServer_->getContentLength()) { httpServer_->getContentLength()) {
A2_LOG_INFO(fmt("Request too long. ContentLength=%s." A2_LOG_INFO(fmt("Request too long. ContentLength=%s."
" See --xml-rpc-max-request-size option to loose" " See --rpc-max-request-size option to loose"
" this limitation.", " this limitation.",
util::uitos(httpServer_->getContentLength()).c_str())); util::uitos(httpServer_->getContentLength()).c_str()));
return true; return true;

View File

@ -1025,7 +1025,7 @@ void RequestGroup::releaseRuntimeResource(DownloadEngine* e)
pieceStorage_->removeAdvertisedPiece(0); pieceStorage_->removeAdvertisedPiece(0);
} }
// Don't reset segmentMan_ and pieceStorage_ here to provide // Don't reset segmentMan_ and pieceStorage_ here to provide
// progress information via XML-RPC // progress information via RPC
progressInfoFile_.reset(); progressInfoFile_.reset();
downloadContext_->releaseRuntimeResource(); downloadContext_->releaseRuntimeResource();
} }

View File

@ -254,9 +254,9 @@ error_code::Value main(int argc, char* argv[])
} }
// Remove option values which is only valid for URIs specified in // Remove option values which is only valid for URIs specified in
// command-line. If they are left, because op is used as a // command-line. If they are left, because op is used as a template
// template for new RequestGroup(such as created in XML-RPC // for new RequestGroup(such as created in RPC command), they causes
// command), they causes unintentional effect. // unintentional effect.
op->remove(PREF_OUT); op->remove(PREF_OUT);
op->remove(PREF_FORCE_SEQUENTIAL); op->remove(PREF_FORCE_SEQUENTIAL);
op->remove(PREF_INPUT_FILE); op->remove(PREF_INPUT_FILE);