Libéral

Mardi 3 mai 2005 13:28 - Code

Principe général de robustesse: « Be liberal in what you accept, and conservative in what you send », il est écrit ainsi pour la première fois dans le RFC 1122 mais est déjà présent antérieurement dans une forme un peu différente « be conservative in what you do, be liberal in what you accept from others. », dans le RFC 793.

Encore avant, elle est définie plus explicitement :

The implementation of a protocol must be robust. Each implementation must expect to interoperate with others created by different individuals. While the goal of this specification is to be explicit about the protocol there is the possibility of differing interpretations. In general, an implementation should be conservative in its sending behavior, and liberal in its receiving behavior. That is, it should be careful to send well-formed datagrams, but should accept any datagram that it can interpret (e.g., not object to technical errors where the meaning is still clear).

RFC 760