Welcome! Log In Create A New Profile

Advanced

Re: Issue with 3rd-party memc and eval modules

Markus Jelsma
February 24, 2010 08:56AM
Yes, i can provide a snippet. In the end i have decided to abandon the project
of doing it in configuration. It is extremely hard to try and write imperative
code in a declarative language; although we do have the if operator [1],
working with it is more troublesome than ever before ;)

We will now try and build a module for our purpose, at least, i hope so.

Anyway, here is a snippet to reproduce a non -closing connection using eval in
a named location called by echo_exec - it gets complicated indeed.


location /test
{
echo_exec @initialize;
}

location @initialize
{
eval_override_content_type 'text/plain';

eval $id
{
rewrite ^(.*)$ /id;
proxy_pass http://data-1:8080;
}
}

This will fail and also fail with a memc_pass call. However, it will work if
you replace the echo_exec call with the entire contents of the named location.

Even this little piece of code gave me a hard time; imagine how some 50 lines
using various eval blocks, proxy_pass and memc_pass directives and many evil
if operators ;)

Anyway, thanks for all the support on the way!


[1]: http://wiki.nginx.org/IfIsEvil


Regards,


On Wednesday 24 February 2010 05:26:04 agentzh wrote:
> tested a bit further and the both agentzh and Valery's module do not
>
> > close the connection inside an interal location called by echo_subrequ
>

Markus Jelsma - Technisch Architect - Buyways BV
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Issue with 3rd-party memc and eval modules

Markus Jelsma February 16, 2010 05:56AM

Re: Issue with 3rd-party memc and eval modules

Piotr Sikora February 16, 2010 06:20AM

Re: Issue with 3rd-party memc and eval modules

Markus Jelsma February 16, 2010 06:50AM

Re: Issue with 3rd-party memc and eval modules

Piotr Sikora February 16, 2010 07:12AM

Re: Issue with 3rd-party memc and eval modules

Markus Jelsma February 16, 2010 07:10AM

Re: Issue with 3rd-party memc and eval modules

Markus Jelsma February 17, 2010 03:54AM

Re: Issue with 3rd-party memc and eval modules

Piotr Sikora February 17, 2010 05:04AM

Re: Issue with 3rd-party memc and eval modules

Valery Kholodkov February 17, 2010 06:22AM

Re: Issue with 3rd-party memc and eval modules

Markus Jelsma February 17, 2010 06:58AM

Re: Issue with 3rd-party memc and eval modules

agentzh February 17, 2010 07:30AM

Re: Issue with 3rd-party memc and eval modules

Valery Kholodkov February 17, 2010 07:24AM

Re: Issue with 3rd-party memc and eval modules

Markus Jelsma February 17, 2010 07:30AM

Re: Issue with 3rd-party memc and eval modules

Piotr Sikora February 20, 2010 11:36AM

Re: Issue with 3rd-party memc and eval modules

Markus Jelsma February 20, 2010 11:36AM

Re: Issue with 3rd-party memc and eval modules

agentzh February 23, 2010 11:30PM

Re: Issue with 3rd-party memc and eval modules

Markus Jelsma February 24, 2010 08:56AM

Re: Issue with 3rd-party memc and eval modules

agentzh February 24, 2010 09:06PM

Re: Issue with 3rd-party memc and eval modules

Markus Jelsma February 20, 2010 11:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready