fix max message length handling - exclude the header