Can not get the value from eval module

sorry about i send the same email secondly, i still can not figure it
out.

i use the nginx eval module, echo module and memc module, so i did a
test.
but when i curl 127.0.0.1/one/ , it just stuck there, i can not get the
output.
when i check the value of system_uid in memcache , it really changed.
but why it was stuck there? when i curl 127.0.0.1/two/ , i can get the
correct output.
i test in my two pc, i get the same result.

some one can help me ?

    location /one/ {
        eval $uid {
            set $memc_cmd incr;
            set $memc_key 'system_uid';
            set $memc_value 1;
            memc_pass 127.0.0.1:11211;
            echo 'test';

        }
        echo 'helloworld';

    }
    location /two/ {
        echo 'helloworld';
        echo_flush;
    }


*

On Wed, Apr 20, 2011 at 12:24 AM, notedit [email protected] wrote:

sorry about i send the same email secondly, i still can not figure it out.
i use the nginx eval module, echo module and memc module, so i did a test.
but when i curl127.0.0.1/one/, it just stuck there, i can not get the
output.
when i check the value of system_uid in memcache , it really changed.
but why it was stuck there? when i curl 127.0.0.1/two/ , i can get the
correct output.
i test in my two pc, i get the same result.
some one can help me ?

The official ngx_eval module can only work with content handlers that
explicitly support the “nginx subrequest in memory” feature. Just a
few modules support that, like ngx_proxy, ngx_memcached, and ngx_memc.
My ngx_echo does not support it, nor does ngx_fastcgi.

You can try out my fork of ngx_eval instead:

https://github.com/agentzh/nginx-eval-module

But as the README page of my fork has already says, it’s recommended
to use ngx_lua to do such tasks because it is more flexible and more
reliable.

Cheers,
-agentzh

On Wed, Apr 20, 2011 at 12:24 AM, notedit [email protected] wrote:

sorry about i send the same email secondly, i still can not figure it out.
i use the nginx eval module, echo module and memc module, so i did a test.

Also, do not use the echo and memc_pass directives in a single
location (an eval block creates an anonymous location as well).

BTW, If you do not understand my reply, just follow it up and ask.
Sending a clone of your original email is impolite and annoying
because it’s a waste of our time and our bandwidth.

Cheers,
-agentzh