handle the invalid POST LENGTH
update the connection management
tiny update on invalid length handling