Skip to main content

Questions tagged [anyevent]

AnyEvent is a Perl framework for event-based programming

1 vote
2 answers
86 views

How to make anyevent "sequential"?

I would like to try mix of AnyEvent and Coro. Is there a way to make the three lines between BEGIN and END more elegant/condensed? use AnyEvent::HTTP; use Coro; async { _ # BEGIN my $READY = ...
AnFi onet.eu's user avatar
  • 10.8k
2 votes
1 answer
160 views

Unable to read client's message using AnyEvent::Socket and tcp_connect (to a UNIX domain socket)

Running the following server and client scripts: Server (updated): #!/usr/bin/perl use strict; use warnings; use feature 'say' ; use AnyEvent ; use AnyEvent::Socket ; use AnyEvent::Handle ; ...
Hannibal's user avatar
  • 445
2 votes
1 answer
101 views

Convert deprecated Perl's Net::IRC codes to AnyEvent::IRC::Client inquiry

Since the Perl's Net::IRC library's been deprecated, I need to convert some old code that uses it over to the newer AnyEvent::IRC::Client. The problem is that the MetaCPAN's AnyEvent docs. don't show ...
santa100's user avatar
  • 255
1 vote
1 answer
113 views

Perl's AnyEvent::IRC::Client library does not close after sending messages

I'm exploring the AnyEvent::IRC::Client library to send a list of messages to an IRC channel. I follow the sample code from its metacpan site (ref: https://metacpan.org/pod/AnyEvent::IRC::Client), ...
santa100's user avatar
  • 255
1 vote
2 answers
342 views

AnyEvent tcp server-client example for localhost hangs when not using TLS

While debugging a failed test for AnyEvent on Windows, I created the following script based on test 80_ssltest.t: use feature qw(say); use strict; use warnings; use AnyEvent::Socket; use AnyEvent::...
Håkon Hægland's user avatar
1 vote
0 answers
196 views

AnyEvent::WebSocket::Client finish callback not called

I am having issue using AnyEvent::WebSocket::Client. The send/receive system works well, but I want to use the on finish callback to handle connection closure but it is never called. my $client = ...
robinvrd's user avatar
  • 1,838
1 vote
1 answer
305 views

Perl: multithreaded server with Coro and AnyEvent

I am a newbie in Perl, so in educational purposes I am developing multithreaded server using AnyEvent and Coro. The client sends to server list of directory paths and server responses with listing of ...
NRogo's user avatar
  • 13
3 votes
1 answer
570 views

Avoid Mojolicious async beviour? Avoid "AnyEvent::CondVar: recursive blocking wait attempted"

We have a library that uses AnyEvent already. It uses AnyEvent internally and in the end it returns a value (synchronously - not with a callback). Is there any way I can use this library with ...
Peter V. Mørch's user avatar
1 vote
0 answers
71 views

How to make external command's output autoflush with AnyEvent::Subprocess?

I am trying to monitor the output of an external command with AnyEvent::Subprocess: use feature qw(say); use strict; use warnings; use AnyEvent::Subprocess; my $job = AnyEvent::Subprocess->new( ...
Håkon Hægland's user avatar
1 vote
0 answers
203 views

Perl Error when requesting proxy to https site. AnyEvent status 596

when requesting through a proxy that supports https to https site. The error 'Reason' => 'ssl23_get_server_hello comes: unknown protocol', 'Status' => 596, I use the AnyEvent library, I suspect that ...
Denis Trifanov's user avatar
2 votes
1 answer
914 views

Monitoring and reading new lines in a file?

The program uses the AnyEvent event loop. The program should read new lines that sometimes (rarely) appear in a text file on the local file system. As I understood, AnyEvent::io can not be used. What ...
Dmitry's user avatar
  • 493
1 vote
0 answers
258 views

Parallel processing using AnyEvent (Any) module with custom function

I am trying to use the AnyEvent module to fetch some information of several web pages in parallel. In Example: Fetching several web pages in parallel using AnyEvent #!/usr/bin/perl use strict; use ...
AbhiNickz's user avatar
  • 1,073
2 votes
0 answers
576 views

Can't install AnyEvent::DBI with Cpan on macOS High Sierra

there was a problem installing the AnyEvent::DBI for perl v5.18.2 on macOS High Sierra 10.13.3 As I understood, the AnyEvent::Fork dependency module is not installed, here's the information from CPAN ...
Dmitry's user avatar
  • 493
1 vote
1 answer
477 views

What is best way in Perl to set a timer to stop long-running process?

I've got an application that invokes a potentially long-running process. I want my program, the caller of this process, to cancel it at any given point and move on to the next entry when a time limit ...
scott8035's user avatar
  • 443
1 vote
1 answer
145 views

Does AnyEvent work with perl 5.26?

I've met the following error:: Can't use an undefined value as a subroutine reference at /home/basiliscos/perl5/perlbrew/perls/perl-5.26.0/lib/site_perl/5.26.0/x86_64-linux/AnyEvent/Loop.pm line 248 ...
Ivan Baidakou's user avatar

15 30 50 per page
1
2 3 4 5 6