Welcome! Log In Create A New Profile

Advanced

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Elena Zwetkow
March 10, 2011 03:20AM
Hello,

could this be a way to put POST multipart uploads to redis/memcache? I look for a solution to put small Images to redis or memcached.

I am right, if i use a fileread with lua in nginx the script is blocking? Any ideas how i can store POST multipart uploads nonblocking? I know there is a great file upload module for nginx, but what happens if i use lua to work on an uploaded file like move / rename / copy uploaded files, this blocks nginx? How can i check if something block nginx?

Thanks for your help.

Elena


Hi, folks!

I'm happy to announce the v0.35 release of the ngx_echo module, which
features the ability to POST/PUT location files as subrequest bodies
via the -f option of the echo_subrequest and echo_subrequest_async
directives.

You can get the release tarball from the download page below

https://github.com/agentzh/echo-nginx-module/downloads

This new feature was implemented by Bernd Dorn. Many thanks to him ;)

Bernd uses the nginx upload module to upload big files and he wants to
issue a PUT subrequest with the uploaded file to store the file
somewhere else based on its hash (hash generation is done by the
upload module). So it's nice to have something like a file option to
replace the "-b" option in the echo_subrequest directive like this:

echo_subrequest PUT /some_upstream/$upload_file_md5 -f $upload_tmp_path

The echo module wraps lots of Nginx internal APIs for streaming input
and output, parallel/sequential subrequests, timers and sleeping, as
well as various meta data accessing. You can read the full
documentation on the following wiki page:

http://wiki.nginx.org/HttpEchoModule

and you can always get the latest source code from GitHub:

http://github.com/agentzh/echo-nginx-module

Happy echoing!

Best regards,
-agentzh

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

--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

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

Use nginx to call shell script - simplest way?

J2R March 08, 2011 07:12AM

Re: Use nginx to call shell script - simplest way?

agentzh March 08, 2011 07:22AM

Re: Use nginx to call shell script - simplest way?

J2R March 09, 2011 01:52PM

Re: Use nginx to call shell script - simplest way?

Richard Kearsley March 09, 2011 02:18PM

Re: Use nginx to call shell script - simplest way?

J2R March 09, 2011 03:48PM

Re: Use nginx to call shell script - simplest way?

agentzh March 09, 2011 10:42PM

Re: Use nginx to call shell script - simplest way?

agentzh March 09, 2011 10:56PM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Elena Zwetkow March 10, 2011 03:20AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 10, 2011 03:32AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Elena Zwetkow March 10, 2011 04:06AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 10, 2011 04:36AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Alexander Kunz March 15, 2011 06:20PM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 15, 2011 10:32PM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Alexander Kunz March 16, 2011 03:26AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 16, 2011 03:40AM

Re: Use nginx to call shell script - simplest way?

António P. P. Almeida March 08, 2011 02:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready