- Timestamp:
- 2017-09-08T19:35:17+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/downloaders/WgetDownload.pm
r31956 r31957 34 34 use BaseDownload; 35 35 use strict; 36 no strict 'subs'; # make an exception so we can use variables as filehandles to pass STDERR/STDOUT to functions, needed for gsprintf() 36 37 use Cwd; 37 38 use util; … … 468 469 } else { # $! contains message "An existing connection was forcibly closed by remote host" where "remote" is a reference to the sockets to our wget child process, 469 470 # NOT to the remote web server we're downloading from. In such a case, the error code is ECONNRESET, and it's not an error, despite $len being undefined. 470 print STDERR "WgetDownload: wget finished\n";471 #print STDERR "WgetDownload: wget finished\n"; 471 472 } 472 473 } … … 474 475 # Finished reading from this filehandle $fh because we read 0 bytes. 475 476 # wget finished, terminate naturally 476 print STDERR "WgetDownload: wget finished\n"; 477 #print STDOUT "\nPerl: open3 command, input streams closed. Wget terminated naturally.\n"; 477 #print STDERR "WgetDownload: wget finished\n"; #print STDOUT "\nPerl: open3 command, input streams closed. Wget terminated naturally.\n"; 478 478 } 479 479 … … 495 495 $num_consecutive_timedouts = 0; 496 496 497 print STDERR "WARNING from WgetDownload: wget timed out $NUM_TRIES times waiting for a response\n"; 498 print STDERR "\tThe URL may be inaccessible or the proxy configuration is wrong or incomplete.\n"; 497 &gsprintf::gsprintf(STDERR, "{WgetDownload.wget_timed_out_warning}\n", $NUM_TRIES); 499 498 } 500 499 … … 732 731 $num_consecutive_timedouts = 0; 733 732 734 #print STDERR "WARNING from WgetDownload: wget timed out $NUM_TRIES times waiting for a response\n"; 735 #print STDERR "\tThe URL may be inaccessible or the proxy configuration is wrong or incomplete.\n"; 733 #&gsprintf::gsprintf(STDERR, "{WgetDownload.wget_timed_out_warning}\n", $NUM_TRIES); 736 734 } 737 735
Note:
See TracChangeset
for help on using the changeset viewer.