perl memcache hangs with -T

Cahill, Earl ecahill at corp.untd.com
Thu Apr 14 14:00:03 PDT 2005


Looks like it is fine in 5.8.x, and not in 5.6.x.  Also, the set is fine,
but the get hangs.

 

Earl

 

  _____  

From: memcached-bounces at lists.danga.com
[mailto:memcached-bounces at lists.danga.com] 
Sent: Thursday, April 14, 2005 2:08 PM
To: memcached at lists.danga.com
Subject: perl memcache hangs with -T

 

So I try this code

 

#!/usr/bin/perl -w

 

use Cache::Memcached;

 

my $mem = Cache::Memcached->new({

  servers => ['localhost:11211'],

});

$mem->set('key', 'value');

print $mem->get('key') . "\n";

 

and it works just fine, but then when I just add the -T

 

#!/usr/bin/perl -T -w

 

use Cache::Memcached;

 

my $mem = Cache::Memcached->new({

  servers => ['localhost:11211'],

});

$mem->set('key', 'value');

print $mem->get('key') . "\n";

 

then I never get anything back, and the cpu for that process near instantly
goes to nearly 100%.  I haven't dug into the perl code, but thought I would
put this out there for ideas/suggestions.

 

Thanks,

Earl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20050414/682a00a4/attachment.html


More information about the memcached mailing list