Subject: | Loop stream issue. |
Date: | Tue, 3 Nov 2009 15:09:31 -0000 |
To: | <bug-IO-Async [...] rt.cpan.org> |
From: | "W.Sheldon" <W.Sheldon [...] kcs.org.uk> |
Code:
my $loop = IO::Async::Loop->new;
$loop->listen(
service => $LISTEN_PORT,
socktype => 'stream',
on_accept => \&new_client,
on_resolve_error => sub { die "Cannot resolve - $_[0]\n"; },
on_listen_error => sub { die "Cannot listen\n"; },
);
$loop->loop_forever;
Causes error on most recent version of GetAddrInfo.pm (0.13):
Error:
Argument "stream" isn't numeric in subroutine entry at
/usr/local/lib/perl/5.10.0/Socket/GetAddrInfo.pm line 304.
but works with version GetAddrInfo 0.11 (with
/usr/local/share/perl/5.10.0/IO/Async.pm $VERSION = '0.21')
Kind regards,
Will Sheldon
Systems Engineer
King's College School
DD +44(0)2082555391
Please consider the environment before printing this e-mail.
KCS is an International Baccalaureate World School. Registered Charity Number 310024.
This Electronic mail is strictly confidential and intended solely for the person or organisation to whom it is addressed. It may contain privileged information and if you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. Its content doesn't necessarily represent the views of this organisation. If you have received it in error, please notify us as soon as possible and delete it. We have an anti-virus system installed on all our PCs and therefore any files leaving us via e-mail will have been checked for known viruses. We accept no responsibility once an e-mail and any attachments leave us. Please be aware that we store all e-mails and may monitor messages at any time.