Welcome! Log In Create A New Profile

Advanced

Couple questions about module behaviour

hungnv@opensource.com.vn
February 11, 2015 11:06PM
Hello,

I am doing some research and writing small modules using nginx. One of the modules is serving file which is generated dynamically based on user’s request. I found it’s hard to handle 2 states of user’s connection:

1. When user request for object A and object A is being generated, server is processing user’s input to produce output, user closes browser, but server still produce output and just fire an error when it finished all the work and give output buffer to next filter. How to prevent this happens?
2. When user request large static file, lets say we are using mp4 module, a user requests a 1GB file, he just downloaded 100MB then close the browser, nginx log module produce number of bytes sent in log file is the file size (which is the content length). How to know exactly how many bytes server sent to client (number of bytes that client actually received)?

Thanks.



--
Hưng
Email: hungnv@opensource.com.vn



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

Couple questions about module behaviour

hungnv@opensource.com.vn 682 February 11, 2015 11:06PM

Re: Couple questions about module behaviour

Maxim Dounin 340 February 12, 2015 08:54AM

Re: Couple questions about module behaviour

hungnv@opensource.com.vn 287 February 12, 2015 09:50PM

Re: Couple questions about module behaviour

Maxim Dounin 328 February 13, 2015 08:16AM

Re: Couple questions about module behaviour

hungnv@opensource.com.vn 245 March 17, 2015 02:58AM

Re: Couple questions about module behaviour

Anatoli Marinov 236 March 17, 2015 02:58AM

Re: Couple questions about module behaviour

hungnv@opensource.com.vn 265 March 17, 2015 03:30AM

Re: Couple questions about module behaviour

Maxim Dounin 268 March 17, 2015 09:48AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready