def _set_size_restrictions(self):
self._command_parser.set_maximum_message_size(self._max_message_size())<EOL>
Set the maximum allowed message in the underlying layer so that big
        messages are not hold in memory before they are rejected.