The maintain-session received-error-message command disables LDP from tearing down a session after error packets are received.
The undo maintain-session received-error-message command restores the default configuration.
By default, LDP tears down a session after error packets are received.
RFC 5036 stipulates that LDP should tear down a session after error TCP packets are received. This processing mode causes the LDP session to frequently flap and L2VPN services carried on the LDP session to be frequently interrupted. To disable LDP from tearing down a session after error packets are received, run the maintain-session received-error-message command. LDP then ignores error packets and keeps the session connected. This is beneficial to service maintenance and can also be used for LDP fault recovery.