Index: trunk/DataStore/scripts/dsget
===================================================================
--- trunk/DataStore/scripts/dsget	(revision 17528)
+++ trunk/DataStore/scripts/dsget	(revision 17534)
@@ -3,5 +3,5 @@
 # Copyright (C) 2006-2008  Joshua Hoblitt
 #
-# $Id: dsget,v 1.19 2008-05-05 20:45:53 jhoblitt Exp $
+# $Id: dsget,v 1.20 2008-05-06 02:35:22 jhoblitt Exp $
 
 use strict;
@@ -67,8 +67,9 @@
 
 # default http request timeout is 30s
+$timeout ||= 30;
+
 my %p = (
     uri     => $uri,
     type    => 'chip',
-    timeout => $timeout ||= 30,
 );
 
@@ -123,5 +124,8 @@
 
 # request the file from the remote data store server (save in tmpfilename)
-my $response = DataStore::File->new(%p)->request( filename => $tmpfilename );
+my $response = DataStore::File->new(%p)->request(
+    filename => $tmpfilename,
+    ua_args  => { timeout => $timeout},
+);
 
 die "request failed" unless defined $response;
