IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17528 for trunk/DataStore


Ignore:
Timestamp:
May 5, 2008, 10:45:53 AM (18 years ago)
Author:
jhoblitt
Message:

add dsget --timeout option

Location:
trunk/DataStore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/Changes

    r17527 r17528  
    22
    330.07
     4    - add dsget --timeout option
    45    - change dsget to return the HTTP status code on failure
    56    - remove use of parse_neb_key() from dsget
  • trunk/DataStore/scripts/dsget

    r17527 r17528  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsget,v 1.18 2008-05-05 20:38:34 jhoblitt Exp $
     5# $Id: dsget,v 1.19 2008-05-05 20:45:53 jhoblitt Exp $
    66
    77use strict;
     
    1919use Pod::Usage qw( pod2usage );
    2020
    21 my ($uri, $bytes, $md5, $nebulous, $filename, $volume, $server, $compress);
     21my ($uri,
     22    $bytes,
     23    $md5,
     24    $nebulous,
     25    $filename,
     26    $volume,
     27    $server,
     28    $compress,
     29    $timeout
     30);
    2231
    2332$server = $ENV{'NEB_SERVER'} unless $server;
     
    3241    'filename|f=s'  => \$filename,
    3342    'compress|c'    => \$compress,
     43    'timeout|t'     => \$timeout,
    3444) or pod2usage( 2 );
    3545
     
    5666}
    5767
     68# default http request timeout is 30s
    5869my %p = (
    5970    uri     => $uri,
    6071    type    => 'chip',
     72    timeout => $timeout ||= 30,
    6173);
    6274
     
    219231Optional, implies C<--nebulous>
    220232
     233=item * --timeout|-t
     234
     235The ammount of time (in seconds) to wait for a response from the DataStore
     236after making an HTTP request.  The default is 30s.
     237
     238Optional.
     239
    221240=back
    222241
Note: See TracChangeset for help on using the changeset viewer.