Tatsuhiro Tsujikawa hace 14 años
padre
commit
d8585fd6eb
Se han modificado 4 ficheros con 7 adiciones y 7 borrados
  1. 2 2
      src/HttpListenCommand.cc
  2. 1 1
      src/HttpServerCommand.cc
  3. 1 1
      src/RequestGroup.cc
  4. 3 3
      src/main.cc

+ 2 - 2
src/HttpListenCommand.cc

@@ -76,7 +76,7 @@ bool HttpListenCommand::execute()
       std::pair<std::string, uint16_t> 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));
 
       HttpServerCommand* c =
@@ -113,7 +113,7 @@ bool HttpListenCommand::bindPort(uint16_t port)
     e_->addSocketForReadCheck(serverSocket_, this);
     return true;
   } 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));
     A2_LOG_ERROR_EX(fmt(MSG_BIND_FAILURE,
                         getCuid(), port),

+ 1 - 1
src/HttpServerCommand.cc

@@ -133,7 +133,7 @@ bool HttpServerCommand::execute()
          (e_->getOption()->getAsInt(PREF_RPC_MAX_REQUEST_SIZE)) <
          httpServer_->getContentLength()) {
         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.",
                         util::uitos(httpServer_->getContentLength()).c_str()));
         return true;

+ 1 - 1
src/RequestGroup.cc

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

+ 3 - 3
src/main.cc

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