Questions tagged [io-async]

In Perl, IO::Async is a module that provides asynchronous, event-driven programming.

4 questions
6
votes
1 answer

How to run external command in parallel using AnyEvent and Perl

I'm new to Perl 5 asynchronous processes and find it exciting that CPAN offers similar support that we can do in Node.js with AnyEvent, IO::Async, etc. However, the tutorial provides a few examples for complicated stuff. What I need is only to run…
est
  • 557
  • 1
  • 4
  • 17
2
votes
1 answer

How can I use IO::Async with an array as input?

I have this loop: foreach my $element ( @array ) { my $result = doSomething($element); } Since it doesn't matter that the array is processed in order, and the script runs long, I'd like run doSomething() asynchronously. I am looking at…
Marcus
  • 5,772
  • 8
  • 35
  • 60
2
votes
1 answer

Hmm, IO::Async can't even handle 10k connections?

Hi I built a very simple HTTP server and only to do a stress testing on POE module. Here's how I tested it: for x in {1..10000}; do curl xxxxx:12342 --retry-delay 5 --retry 3 -d randombytes$x done When I do that I see multiple "Connection Reset"…
daisy
  • 22,498
  • 29
  • 129
  • 265
1
vote
1 answer

Deadlock with Perl, IO:Async::Loop and pipe to sendmail

We are seeing suck sendmail processes when we are attempting to send email from a Perl FCGI process. These processes are taking too long, hours to a day, since it should just be doing a relay to a server configured in sendmail as the smart host.…
Brian C.
  • 6,455
  • 3
  • 32
  • 42