Changeset 31957 for main/trunk/greenstone2
- Timestamp:
- 2017-09-08T19:35:17+12:00 (7 years ago)
- Location:
- main/trunk/greenstone2/perllib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/downloaders/WebDownload.pm
r31920 r31957 135 135 136 136 # if ($strResponse ne ""){print "$strResponse\n";} 137 print STDERR "Finish downloadfrom $self->{'url'}\n";137 print STDERR "Finished downloading from $self->{'url'}\n"; 138 138 139 139 print STDERR "<<Finished>>\n"; -
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 -
main/trunk/greenstone2/perllib/strings.properties
r31899 r31957 1354 1354 WgetDownload.user_password:User password 1355 1355 WgetDownload.no_check_certificate:No check certificate 1356 WgetDownload.wget_timed_out_warning:WARNING: wget timed out %s times waiting for a response.\n\tThe URL may be inaccessible or the proxy configuration is wrong or incomplete.\n 1356 1357 1357 1358 Z3950Download.desc:A module for downloading from Z3950 repositories
Note:
See TracChangeset
for help on using the changeset viewer.