Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2022-10-05 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (23 votes). Check out past polls.

    Notices?