Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Memcache 'get' returns undef running under mod_perl (debug)

by tye (Sage)
on Nov 30, 2007 at 16:51 UTC ( #654147=note: print w/replies, xml ) Need Help??

in reply to Memcache 'get' returns undef running under mod_perl

debug => 0,

That seems the obvious place to start. :)

- tye        

Replies are listed 'Best First'.
Re^2: Memcache 'get' returns undef running under mod_perl (debug)
by graq (Curate) on Nov 30, 2007 at 16:59 UTC

    Sadly, it does not seem very informative. Telling me that the value has been stored (which I know) and that the cache has been hit (which I know).

    Other than that, it is very silent

    -=( Graq )=-

      To continue with the simple and obvious suggestions (that you may have already tried), add "-vv" to your memcached command line. (I was also suspicious of your "-u root" as hsinclai highlighted but it'd also be interesting to learn of the mechanics of the failure.)

      - tye        

        The problem lay in the FilterHandler's invocation of other classes.

        The code looked a little like this

        $html =~ s/<\?KEYWORD\s+([^\?^>]+)\??>/$self->handle($1)/gme;

        Changing this to

        $html =~ s/<\?KEYWORD\s+([^\?^>]+)\??>/$self->handle($1)/ge; # Removed multiline option 'm'

        fixed the memcache problem.

        It seems to alter memcache's behaviour in GetParser when checking $self->[BUF]

        if ($self->[BUF] =~ /^END\r\n/) { $self->[ON_ITEM] = undef; return 1; # we're done successfully, return 1 to finish }

        Looks like m fighting with S*

        -=( Graq )=-

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://654147]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2023-12-07 13:58 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (32 votes). Check out past polls.