Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes setting the tw_recycle and tw_reuse flags to 1 solves the problem. However I think it is not a safe thing to do from tcp protocol point of view. When a tcp port is re-used immediately after it has been closed then there is a chance that the other side might have not received the last tcp packet (lost packets) and would still keep the port open. When a new tcp connection is open via that port then the other side might wrongly assume the new packet arriving as belonging to the old connection and cause problems.

Also the above flags are set globally for all interfaces, they cannot be set on per interface basis. So even though the problem is only happening on the intra cluster network interface, the public facing interfaces will also get the above setting. (and the public facing interface is more likely to experience packet loss etc..)