Add support for connect_timeout on both Reader and Connection constructors
Signed-off-by: Pedro Melo <melo@simplicidade.org>
This commit is contained in:
1 parent
011c7a4b82
commit
bfa5a905d7
2 files changed
+3
-3
No files matched your search
@@ -42,7 +42,7 @@ sub new {
|
||||
$self->{host} = delete $args{host} or croak q{FATAL: required 'host' parameter is missing};
|
||||
$self->{port} = delete $args{port} or croak q{FATAL: required 'port' parameter is missing};
|
||||
|
||||
for my $p (qw( client_id hostname connect_cb error_cb )) {
|
||||
for my $p (qw( client_id hostname connect_cb error_cb connect_timeout )) {
|
||||
$self->{$p} = delete $args{$p} if exists $args{$p} and defined $args{$p};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user