# Unbuffered requests in a reverse proxy?

**URL:** <https://www.ruby-forum.com/t/unbuffered-requests-in-a-reverse-proxy/234936>\
**Category:** NGINX\
**Created:** [May 19, 2013, 9:50pm UTC](https://www.ruby-forum.com/t/unbuffered-requests-in-a-reverse-proxy/234936 "2013-05-19T21:50:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [May 19, 2013, 9:50pm UTC](https://www.ruby-forum.com/t/unbuffered-requests-in-a-reverse-proxy/234936/1 "2013-05-19T21:50:29Z")

</div>

Hi

Can nginx be configured to pass through a reverse proxy request before  
it has been transmitted completely?

My set-up is a public facing nginx server accepting file uploads passed  
to another server via a reverse proxy configuration.  
I appears as nginx is reading the entire request before passing it on to  
the reverse proxy.

The back end is written to abort early if the file size is not  
acceptable depending which account the client is logged in to or abort  
immediately if not logged in.  
Is there any buffer setting that can be set to 0 so that the request  
won’t be buffered?

---

<div class="post-metadata">

**Author:** ![Peter\_Hultqvist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc8723/32.png) [@Peter\_Hultqvist](https://www.ruby-forum.com/u/Peter_Hultqvist)\
**Post date:** [May 20, 2013, 9:57am UTC](https://www.ruby-forum.com/t/unbuffered-requests-in-a-reverse-proxy/234936/2 "2013-05-20T09:57:20Z")

</div>

On Sun, May 19, 2013 at 09:50:02PM +0200, Peter Hultqvist wrote:

> The back end is written to abort early if the file size is not  
> acceptable depending which account the client is logged in to or abort  
> immediately if not logged in.  
> Is there any buffer setting that can be set to 0 so that the request  
> won’t be buffered?

See the nginx mailinglist archives for a “no\_buffer” patch to nginx  
1.2.7:

> **[姚伟斌 - 深度探索开放源代码, 网络编程和网络建站](https://yaoweibin.cn)**
>
> 我是姚伟斌 (文景), 分享我编程和建站的实践，尤其是在Nginx和Proxy服务器管理，以及Python和NodeJS编程语言中的独到见解。

You’ll find the usage / configuration syntax from the archives.

“no\_buffer” patch for nginx 1.4.x isn’t ready/stable yet.

– Pasi
