MTU discovery mechanisms does not work very well for ADSL users with PPPoE link, especially when they use wireless home router. client users may failed to upload picture or music or any other big post requests. here is a post regarding to this problem. <a href="http://hi.baidu.com/ybbmdf/blog/item/287d878b498e04d6fc1f1079.html(">http://hi.baidu.com/ybbmdf/blog/item/287d878b498e04d6fc1f1079.html(</a> i am sorry it is in Chinese). so we have to decrease the tcp package size.<br>
<br>BTW, thanks for your advice for the patch, its very nice.<br><br><div class="gmail_quote">On Thu, Jun 9, 2011 at 1:10 PM, Joshua Zhu <span dir="ltr">&lt;<a href="mailto:zhuzhaoyuan@gmail.com">zhuzhaoyuan@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Hi,<br></div><div><br></div><div>Just out of curiosity, could you please provide some context, i.e. in what circumstance do you have to change the TCP MSS or the benefit? After all, there&#39;re TCP path MTU discovery mechanisms already.</div>

<div><br></div><div>As for the patch itself, I don&#39;t think it&#39;s a good idea to set the default value of mss to 1024, since it will punish those who don&#39;t want this feature. BTW, the TCP_MAXSEG option is not supported by all OS vendors, so you should test it first (in auto/os/features).</div>

<div><br></div><div>P.S. It seems that the diff format of your patch is wrong.<br></div><div><br></div><div>Regards,</div><div>Joshua</div><div><br></div><div class="gmail_quote"><div><div></div><div class="h5">On Thu, Jun 9, 2011 at 12:05 PM, Ning Wang <span dir="ltr">&lt;<a href="mailto:renren.wangning@gmail.com" target="_blank">renren.wangning@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">hi all,<br>we made some changes to nginx in order to support tcp mss which is already supported by haproxy. you can see the attached patch for details. it is a patch against version 0.8.54.<br>

<br>the configuration is very easy.<br>
server {<br>    listen 80 mss=1440;<br>}<br><br>
<br></div></div>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
<br></blockquote></div><font color="#888888"><br><br>-- <br>Joshua Zhu<br><a href="http://www.zhuzhaoyuan.com" target="_blank">http://www.zhuzhaoyuan.com</a><br>
</font><br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
<br></blockquote></div><br>