CC: | jochen.schroer.hays [...] md.de |
Subject: | Undef responce from sysread within _ping method |
Perl 5.18.4 on macos Mojave 10.14.5, AsyncPing used in action method in Net::Server
Hi,
by using AsyncPing within Net::Server I run into the problem that the sysread in line 104 often returns an undef value.
If I understand the doc from https://perldoc.perl.org/functions/sysread.html correctly, than this could be, but has to be handled. (in my case the error is "Resource temporarily unavailable")
If i change the line 104 to
if(defined $bytesread && $bytesread>0){
everything works fine.