That was a really fun bug to hunt! And it should be fixed now.

  
  
https://github.com/kraih/mojo-pg/compare/b94da8531e98a9da9197dfb8cf29e4591ad9c8b4...4a3d2e43f6a20f216d93f5b2521715faf65e9bfd

Turns out DBD::Pg is innocent after all, and it was just a little bit of 
Perl magic. We wrap the DBD::Pg file descriptor into a IO::Handle object, 
to be able to use it with Mojo::IOLoop.

    https://metacpan.org/source/GBARR/IO-1.25/lib/IO/Handle.pm#L327

But when the last reference to this wrapper is lost, Perl automatically 
closes the underlying file descriptor. (Although $dbh->ping blocking 
forever might still be a bug, i would expect for it to be able to detect 
the closed file descriptor)

--
sebastian

-- 
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to