nginx mss patch

Joshua Zhu zhuzhaoyuan at
Thu Jun 9 09:10:00 MSD 2011


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're TCP path MTU discovery mechanisms already.

As for the patch itself, I don't think it's a good idea to set the default
value of mss to 1024, since it will punish those who don'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).

P.S. It seems that the diff format of your patch is wrong.


On Thu, Jun 9, 2011 at 12:05 PM, Ning Wang <renren.wangning at>wrote:

> hi all,
> 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.
> the configuration is very easy.
> server {
>     listen 80 mss=1440;
> }
> _______________________________________________
> nginx mailing list
> nginx at

Joshua Zhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list