]> git.proxmox.com Git - librados2-perl.git/commitdiff
add method to get/set timeout
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 22 Jan 2014 06:58:34 +0000 (07:58 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 22 Jan 2014 06:58:34 +0000 (07:58 +0100)
PVE/RADOS.pm

index 86c0df667683b424437006d2b7aca0bc37348f4e..aa6a102c66b1e2efa055d2a3855e3c239773a1be 100644 (file)
@@ -210,6 +210,14 @@ sub new {
     return $self;
 }
 
+sub timeout {
+    my ($self, $new_timeout) = @_;
+
+    $self->{timeout} = $new_timeout if $new_timeout;
+
+    return $self->{timeout};
+}
+
 sub DESTROY {
     my ($self) = @_;