Skip to content

How to set the timeout? #66

@szabgab

Description

@szabgab

I have code like this:

my $feed = XML::Feed->parse(URI->new($url))

and now it seems to be stuck on https://www.perl.com/article/index.xml

I looked at the documentation of XML::Feed, but could not find what is the default timeout and how I could set the timeout. It might be useful to add it.

Actually I updated my code to report the elapsed time and now I see it took 137 seconds, but apparently the request was successful.
BTW this is the script: https://github.com/szabgab/perlweekly/blob/master/bin/stats.pl

$ perl -MXML::Feed -E 'say $XML::Feed::VERSION'
0.65

It is strange what's going on as both the XML::Feed request and wget are stuck. Even wget https://www.perl.com/ is stuck while I can use my regular browser to access the site without any problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions