Use a 5 seconds timeout to remotely fetch HTML events source.

This commit is contained in:
hackademix 2022-02-25 09:46:54 +01:00
parent 6ed38920bd
commit cec4c9aab7
1 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ sub create_re
{
my $url = shift(@_);
my $ua = LWP::UserAgent->new;
$ua->timeout(5);
$ua->agent('Mozilla/5.0');
$ua->ssl_opts('verify_hostname' => 0);
my $res = $ua->get($url);