From d262715b84de2b5346880a963d3baec061f1aaf1 Mon Sep 17 00:00:00 2001 From: Kostyantyn Ovechko Date: Tue, 22 Jun 2010 02:26:28 +0300 Subject: Add options [connections].connection_timeout, [connections].ftp_response_timeout, [connections].timeout. Set the number of seconds to wait while trying to connect. Use 0 to wait indefinitely. Pass a long. It should contain the maximum time in seconds that you allow the connection to the server to take. This only limits the connection phase, once it has connected, this option is of no more use. Set to zero to disable connection timeout (it will then only timeout on the system's internal timeouts). See also the TIMEOUT option. default: connection_timeout=15 Set a timeout period (in seconds) on the amount of time that the server is allowed to take in order to generate a response message for a command before the session is considered hung. While awaiting for a response, this value overrides TIMEOUT. It is recommended that if used in conjunction with TIMEOUT, you set FTP_RESPONSE_TIMEOUT to a value smaller than TIMEOUT. default: ftp_response_timeout=5000 maximum amount of time to download segment in seconds Set the maximum number of seconds for a connection to execute. Pass a long as parameter containing the maximum time in seconds that you allow the transfer operation to take. Normally, name lookups can take a considerable time and limiting operations to less than a few minutes risk aborting perfectly normal operations. default: timeout=6000 --- segget/pkg.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'segget/pkg.cpp') diff --git a/segget/pkg.cpp b/segget/pkg.cpp index 3c154a1..26b1a24 100644 --- a/segget/pkg.cpp +++ b/segget/pkg.cpp @@ -33,7 +33,6 @@ void Tpkg::load_distfile_list(json_object* json_array_distfile_list){ } } - void Tpkg::load_pkg_from_json(json_object* json_obj_pkg){ // printf("\t%d %s\n",array_item_num, json_object_to_json_string(json_obj_pkg)); name=json_object_to_json_string(json_object_object_get(json_obj_pkg,"pkg_name")); -- cgit v1.2.3-65-gdbad