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:
771fcc7
)
Base: lower timeout for default UserAgent object
author
Ralf Ertzinger
<ralf@skytale.net>
Sat, 11 Feb 2012 14:53:41 +0000
(15:53 +0100)
committer
Ralf Ertzinger
<ralf@skytale.net>
Sat, 11 Feb 2012 14:53:41 +0000
(15:53 +0100)
videosite/Base.pm
patch
|
blob
|
history
diff --git
a/videosite/Base.pm
b/videosite/Base.pm
index
b31fcb6
..
bc38468
100644
(file)
--- a/
videosite/Base.pm
+++ b/
videosite/Base.pm
@@
-181,7
+181,11
@@
sub ua {
my $self = shift;
my $ua;
- $ua = LWP::UserAgent->new('agent' => 'Mozilla/5.0', 'cookie_jar' => HTTP::Cookies->new);
+ $ua = LWP::UserAgent->new(
+ 'agent' => 'Mozilla/5.0',
+ 'cookie_jar' => HTTP::Cookies->new,
+ 'timeout' => 15,
+ );
# Remove a currently defined HTTPS proxy. See below for a longer explanation.
delete($ENV{'HTTPS_PROXY'});