# Whats the problem, upstream? kernel? nginx? Need your help

**URL:** <https://www.ruby-forum.com/t/whats-the-problem-upstream-kernel-nginx-need-your-help/187137>\
**Category:** NGINX\
**Created:** [April 18, 2010, 6:30am UTC](https://www.ruby-forum.com/t/whats-the-problem-upstream-kernel-nginx-need-your-help/187137 "2010-04-18T06:30:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yong\_xue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/3ec8ea/32.png) [@yong\_xue](https://www.ruby-forum.com/u/yong_xue)\
**Post date:** [April 18, 2010, 6:30am UTC](https://www.ruby-forum.com/t/whats-the-problem-upstream-kernel-nginx-need-your-help/187137/1 "2010-04-18T06:30:58Z")

</div>

hi,all

```
 This is the url,

```

[http://124.115.14.23/http\_imgload.cgi?/rurl4\_b=86e76ed3fe8a925d6727a22b2df8fa6dd25a6ea7fb934efe3d7336ce51a4a93f3ae2dea54fb40d43a4d68660f07135d4f62b761d36493b0aef204c08c35da510918f6ec079d49b4ab9a559a639335ffca7a41363&a=36&b=31&sid=8yw8WRb6JHK1CQ](http://124.115.14.23/http_imgload.cgi?/rurl4_b=86e76ed3fe8a925d6727a22b2df8fa6dd25a6ea7fb934efe3d7336ce51a4a93f3ae2dea54fb40d43a4d68660f07135d4f62b761d36493b0aef204c08c35da510918f6ec079d49b4ab9a559a639335ffca7a41363&a=36&b=31&sid=8yw8WRb6JHK1CQ)  
when I visit it via the nginx proxy, the IE is always waiting for  
about  
the keepalive timeout, then render the image but not full, the image  
size is  
about 32K.  
when I visit the image by a browser directly there is no problem,  
the  
image size is about 35K.  
So I turn on the nginx debug, the error seems ok, at the end there  
is a  
upstream read timeout.  
I did a tcpdump, the nginx box got all the response content, but  
the  
upstream(124.115.14.23) did not close the connection. After about 3  
seconds,( I set keepalive timeout 3), nginx box sent a FIN packet to the  
upstream, then receive a FIN.

nginx is 0.7.24. kernel is 2.6.16.  
so what can I do? upgrade the kernel?

–  
Best Regards,

è–› å‹‡

QQ:312200

e-mail:removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
MSN:removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![yong\_xue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/3ec8ea/32.png) [@yong\_xue](https://www.ruby-forum.com/u/yong_xue)\
**Post date:** [April 19, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/whats-the-problem-upstream-kernel-nginx-need-your-help/187137/2 "2010-04-19T12:09:43Z")

</div>

resolved.  
set proxy\_buffering off;

åœ¨ 2010å¹´4æœˆ18æ—¥ ä¸‹åˆ12:30ï¼Œyong xue [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)å†™é“ï¼š

> a upstream read timeout.
> 
> è–› å‹‡
> 
> QQ:312200
> 
> e-mail:removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> MSN:removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

–  
Best Regards,

è–› å‹‡

QQ:312200

e-mail:removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
MSN:removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
