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

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:
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.



  • perl(MojoX/UserAgent/ = 1.0.002
  • perl-MojoX-UserAgent-Throttler = 1.0.2-alt1

    Install Howto

    1. Add the following line to /etc/apt/sources.list:
      rpm [Sisyphus] noarch autoimports
      rpm [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


    • /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/