Skip Menu |

This queue is for tickets about the Danga-Socket CPAN distribution.

Report information
The Basics
Id: 20668
Status: rejected
Priority: 0/
Queue: Danga-Socket

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.52
Fixed in: 1.61



Subject: pseudohash dilemma
As you will probably know, pseudohash support has been ripped out of bleadperl in patch 17725 back in August 2002. The tests of Danga Socket cannot be run with perl versions in the development track towards 5.10. It's not clear to me what breaks and whose bug it is. To get a little more out of perl, I added these lines at the top of t/10-events.t: use Carp; $SIG{__DIE__} = sub { confess shift; }; and with that I get % /usr/local/perl-5.8.0@28599/bin/perl -Mblib t/10-events.t 1..30 ok 1 - using epoll ok 2 - no watched sockets ok 3 - created server Modification of a read-only value attempted at t/10-events.t line 166. at t/10-events.t line 20 main::__ANON__('Modification of a read-only value attempted at t/10-events.t ...') called at t/10-events.t line 166 ClientOut::new('ClientOut') called at t/10-events.t line 33 main::__ANON__('HASH(0x844f04c)', 'HASH(0x8451d64)') called at /home/k/.cpan/build/Danga-Socket-1.52/blib/lib/Danga/Socket.pm line 679 Danga::Socket::PostEventLoop() called at /home/k/.cpan/build/Danga-Socket-1.52/blib/lib/Danga/Socket.pm line 487 Danga::Socket::EpollEventLoop('Danga::Socket') called at t/10-events.t line 43 Right now I have no idea how to proceed to get closer to the cause of this bug.
Dan Kogai posted a rebless function to perl5-porters that should be able to handle both old and new fields.pm http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-12/msg00187.html
I've prepared a patch against Danga-Socket 1.56 based on Dan Kogai's rebless() routine. The patch is in my CPAN directory as: ANDK/patches/Danga-Socket-1.56-ANDK-01.patch.gz With this patch all tests pass with both perl 5.8.8 and bleadperl (which will become perl 5.10). Without this patch Danga::Socket 1.56 still fails tests under bleadperl. Thanks all,
Current versions work with 5.8 and 5.10 just fine, so the report seem outdated and not applicable any more