git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aad4734
)
Set timeout for URL shortener to 5 seconds
author
Ralf Ertzinger
<ralf@skytale.net>
Fri, 21 Dec 2012 14:02:01 +0000
(15:02 +0100)
committer
Ralf Ertzinger
<ralf@skytale.net>
Fri, 21 Dec 2012 14:02:01 +0000
(15:02 +0100)
videosite.pl
patch
|
blob
|
history
diff --git
a/videosite.pl
b/videosite.pl
index
d7a549f
..
6ea4892
100644
(file)
--- a/
videosite.pl
+++ b/
videosite.pl
@@
-176,7
+176,7
@@
sub expand_url_shortener {
'shar\.es/[[:alnum:]]+',
'goo\.gl/[[:alnum:]]+',
);
- my $ua = LWP::UserAgent->new(agent => 'Mozilla', max_redirect => 0);
+ my $ua = LWP::UserAgent->new(agent => 'Mozilla', max_redirect => 0
, timeout => 5
);
my $i = 10;
OUTER: while (($os ne $s) and ($i > 0)) {