Changeset 14518
- Timestamp:
- 01/20/08 18:22:02 (11 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/MidCOM_2_8/fi.hut.staticdumps/bin/dump_redirects.php
r14197 r14518 5 5 $wget_options = "-erobots=off -q -m -nH"; 6 6 $rsync_options = '-a'; 7 $http_timeout = 300; // seconds = 5minutes 7 8 8 9 function better_die($msg) … … 34 35 } 35 36 require_once('midcom/lib/org/openpsa/httplib/nonmidcom.php'); 36 // NOTE: This way of forcing config only works with the nonmidcom mode of httplib, do not think you could use this elsewhere !37 $GLOBALS['midcom_component_data']['org.openpsa.httplib']['config']->options['http_timeout'] = 300;38 37 39 38 if ( !isset($argv[1]) … … 88 87 } 89 88 $client = new org_openpsa_httplib(); 89 // This way only works with the nonmidcom.php initialized client 90 $client->_config->options['http_timeout'] = $http_timeout; 90 91 $retries = 5; 91 92 do branches/MidCOM_2_8/fi.hut.staticdumps/bin/dump_sites.php
r14314 r14518 5 5 $wget_options = "-erobots=off -q -m -nH"; 6 6 $rsync_options = '-a'; 7 $http_timeout = 300; // seconds = 5minutes 7 8 8 9 function better_die($msg) … … 38 39 } 39 40 require_once('midcom/lib/org/openpsa/httplib/nonmidcom.php'); 40 // NOTE: This way of forcing config only works with the nonmidcom mode of httplib, do not think you could use this elsewhere !41 $GLOBALS['midcom_component_data']['org.openpsa.httplib']['config']->options['http_timeout'] = 300;42 41 43 42 if ( !isset($argv[1]) … … 151 150 } 152 151 $client = new org_openpsa_httplib(); 152 $client->_config->options['http_timeout'] = $http_timeout; 153 153 // Quick and Dirty way to do retries (the result might be empty and still be valid...) 154 154 $retries = 5; … … 203 203 } 204 204 $client = new org_openpsa_httplib(); 205 $client->_config->options['http_timeout'] = $http_timeout; 205 206 // Quick and Dirty way to do retries (the result might be empty and still be valid...) 206 207 $retries = 5;
