[Mojolicious] Mojo::Reactor

2020-04-18 Thread Stefan Adams
There's a current PR for addressing an issue regarding Mojo::Reactor. I
feel like I have a good understanding of all the parts of Mojolicious,
except Mojo::Reactor. I simply do not understand it at all. My confusion is
increased by the similarity with Mojo::IOLoop. Much of the docs make use of
IOLoop modules but I can't think of an example that uses Reactor.

Can anyone provide some insight into this module, what it's for, and how
and why it's different from IOLoop?

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFQPo67qOjjr7xuWSeTb%2BC8axQUVEqiHWg3_ryBE6Q8TQg%40mail.gmail.com.


Re: [Mojolicious] Mojo::Reactor

2020-04-18 Thread Dan Book
The reactor is essentially an abstract class for low level event loop
implementations, stripped to the functionality that each implementation can
implement differently. They don't do anything except watch filehandles and
set timers, start and stop, and run callbacks when something happens while
running. Mojo::IOLoop is the user interface that can decide what reactor
implementation to use, implements the singleton that different parts of the
process can hook into, and implements higher level abstractions like
streams, clients, and servers.

-Dan

On Sat, Apr 18, 2020 at 11:26 PM Stefan Adams  wrote:

> There's a current PR for addressing an issue regarding Mojo::Reactor. I
> feel like I have a good understanding of all the parts of Mojolicious,
> except Mojo::Reactor. I simply do not understand it at all. My confusion is
> increased by the similarity with Mojo::IOLoop. Much of the docs make use of
> IOLoop modules but I can't think of an example that uses Reactor.
>
> Can anyone provide some insight into this module, what it's for, and how
> and why it's different from IOLoop?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mojolicious+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFQPo67qOjjr7xuWSeTb%2BC8axQUVEqiHWg3_ryBE6Q8TQg%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/CABMkAVVtwONXioM1_k9Zhfy82AzcVxnHk9A3JLSrVqN%2BEBmZRQ%40mail.gmail.com.


[Mojolicious] Mojo::Reactor::Poll warnings/errors

2014-07-13 Thread Tim
Hi,

from time to time I get the following warnings/errors. What's the reason? 
Is it a bug?

Use of uninitialized value in hash element at 
> /usr/local/share/perl/5.14.2/Mojo/Reactor/Poll.pm line 46.
> Use of uninitialized value $cb in method lookup at 
> /usr/local/share/perl/5.14.2/Mojo/Reactor/Poll.pm line 111.
> Mojo::Reactor::Poll: Read failed: Can't locate object method "" via 
> package "Mojo::Reactor::Poll" at 
> /usr/local/share/perl/5.14.2/Mojo/Reactor/Poll.pm line 111.
>
 

> Deep recursion on subroutine "Mojo::DOM::_text" at 
> /usr/local/share/perl/5.14.2/Mojo/DOM.pm line 328.


 

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Mojo::Reactor::Poll: I/O watcher failed: Can't call method "build_tx" on an undefined value at C:/Perl64/site/lib/Mojo/Server.pm line 23.

2016-10-07 Thread petra
Hi all,

I just begin to learn Mojo.
And do instruction from this 
page http://mojolicious.org/perldoc/Mojolicious/Guides/Growing

But after section *Simplified application script *and running test, I got 
such error:

t/login.t .. Mojo::Reactor::Poll: I/O watcher failed: Can't call method 
"build_tx" on an undefined value at C:/Perl64/site/lib/Mojo/Server.pm line 
23.
# Premature connection close

#   Failed test 'GET /'
#   at t/login.t line 21.

Anybody can help to solve this problem?

I am working on Windows 10 and perl 5.24 from ActivePerl.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Error using Mojolicious -> Mojo::Reactor::Poll: Read failed: Can't call method "log" on an undefined value at /usr/local/share/perl/5.14.2/Mojo/Server/Daemon.pm line 165

2014-07-04 Thread Kevin George
Hi guys,

I'm trying to run a perl script that uses the Mojolcious module. I always 
get the below error

Mojo::Reactor::Poll: Read failed: Can't call method "log" on an undefined 
value at /usr/local/share/perl/5.14.2/Mojo/Server/Daemon.pm line 165

I used CPAN to install Mojolicious. Has anyone faced this or has any clue 
about it?
I am not able to find anything on the internet.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.