Fix endless loop when TCP packet ends in the middle of a request line.