Hi,  I'm try Mojo::Pg sample code in https://github.com/kraih/mojo-pg  but 
I get an error on the non-blocking:
[Thu Nov  9 14:47:44 2017] [error] Can't dup: Bad file descriptor at 
C:/Perl/site/lib/Mojo/Pg/Database.pm line 161.

The running enviroment:
Windows 7
Perl : (v5.26, MSWin32)
Mojolicious and Mojo::Pg module are all newly installed.

error detail:
Can't dup: Bad file descriptor at C:/Perl/site/lib/Mojo/Pg/Database.pm line 
161.
156 
157   return if $self->{watching} || $self->{watching}++;
158 
159   my $dbh = $self->dbh;
160   unless ($self->{handle}) {
161     open $self->{handle}, '<&', $dbh->{pg_socket} or die "Can't dup: 
$!";
162   }
163   Mojo::IOLoop->singleton->reactor->io(
164     $self->{handle} => sub {
165       my $reactor = shift;
166 

David

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to