perl-MojoX-UserAgent-Throttler-1.0.2-alt1.noarch.rpm


Advertisement

Description

perl-MojoX-UserAgent-Throttler - add throttling support to Mojo::UserAgent

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-MojoX-UserAgent-Throttler
Package version 1.0.2
Package release alt1
Package architecture noarch
Package type rpm
Installed size 12.13 KB
Download size 12.13 KB
Official Mirror ftp.altlinux.org
This module helps throttle the Mojo::UserAgent manpage using the Sub::Throttler manpage.
While in most cases this module isn't needed and existing functionality of
Sub::Throttler is enough to throttle Mojo::UserAgent, there are two
special cases which needs extra handling - when Mojo::UserAgent object
is destroyed while there are delayed requests, and when new async
requests start while destroying Mojo::UserAgent object.
To handle these cases it won't be enough to just do usual:
throttle_it('Mojo::UserAgent::start');
Instead you'll have to write the section on "custom wrapper" in the Sub::Throttler manpage plus add
wrapper for Mojo::UserAgent::DESTROY. Both are provided by this module and
activated when you load it.
So, when using this module you shouldn't manually call throttle_it() like
shown above - just use this module and then setup throttling algorithms as
you need and apply them to the section on "start" in the Mojo::UserAgent manpage - this will let you
throttle all (sync/async, GET/POST/etc.) requests.
Use the section on "apply_to" in the Sub::Throttler::algo manpage to customize throttling based on
request method, hostname, etc.

Alternatives

Package Version Architecture Repository
perl-MojoX-UserAgent-Throttler - - -

Requires

Name Value
/usr/share/perl5 -
perl(Mojo/Base.pm) -
perl(Mojo/UserAgent.pm) -
perl(Mojo/Util.pm) -
perl(Sub/Throttler.pm) >= 0.002
perl(Sub/Util.pm) >= 1.400
perl(constant.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(MojoX/UserAgent/Throttler.pm) = 1.0.002
perl-MojoX-UserAgent-Throttler = 1.0.2-alt1

Download

Type URL
Binary Package perl-MojoX-UserAgent-Throttler-1.0.2-alt1.noarch.rpm
Source Package perl-MojoX-UserAgent-Throttler-1.0.2-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-MojoX-UserAgent-Throttler rpm package:
    # sudo apt-get install perl-MojoX-UserAgent-Throttler

Files

Path
/usr/share/doc/perl-MojoX-UserAgent-Throttler-1.0.2/Changes
/usr/share/doc/perl-MojoX-UserAgent-Throttler-1.0.2/LICENSE
/usr/share/doc/perl-MojoX-UserAgent-Throttler-1.0.2/README
/usr/share/perl5/MojoX/
/usr/share/perl5/MojoX/UserAgent/Throttler.pm

See Also

Package Description
perl-MojoX-Validate-Util-1.01-alt1.noarch.rpm A very convenient wrapper around Mojolicious::Validator
perl-MojoX-ValidateHeadLinks-1.05-alt1.noarch.rpm Ensure CSS and JS links in web pages point to real files
perl-MojoX-ValidateHeadLinks-scripts-1.05-alt1.noarch.rpm MojoX-ValidateHeadLinks scripts
perl-MojoX-Validator-0.0016-alt1.noarch.rpm Data validator
perl-Mojolicious-Che-0.033-alt1.noarch.rpm ... ....... ...... ... .......... Mojolicious. ..... ...... ...........
perl-Mojolicious-Command-bulkget-0.03-alt1.noarch.rpm Perform bulk get requests
perl-Mojolicious-Command-bundle-0.01-alt1.noarch.rpm Bundle assets from other projects
perl-Mojolicious-Command-deploy-0.02-alt1.noarch.rpm Deployment command
perl-Mojolicious-Command-deploy-heroku-0.11-alt1.noarch.rpm Deploy to Heroku
perl-Mojolicious-Command-donuts-0.04-alt1.noarch.rpm Find fresh donuts with Mojolicious!
perl-Mojolicious-Command-generate-DBIxCustomModel-1.0.1-alt1.noarch.rpm generate DBIx::Custom model directory structure
perl-Mojolicious-Command-generate-bootstrap-0.04-alt1.noarch.rpm Include Twitters Bootstrap
perl-Mojolicious-Command-generate-bootstrap_app-0.07-alt1.noarch.rpm Generate a simple application with DBIx::Class authentication
perl-Mojolicious-Command-generate-controller-0.02-alt1.noarch.rpm Mojolicious command generator for controllers
perl-Mojolicious-Command-generate-dbicdump-0.1.1-alt1.noarch.rpm dbicdump your Mojo app schema
Advertisement
Advertisement