Make buffered_line_reader handle CRLF; also let it read specified size buffers
Summary:
LSP uses internet-convention line ending "CRLF"
https://www.rfc-editor.org/old/EOLstory.txt
http://stackoverflow.com/questions/
17262779/why-does-http-use-crlf-as-line-delimiter
It also uses a http-style "Content-length" header, and delivers that many bytes for the message body with no further delimiter.
I amended the "buffered_line_reader" code to handle both things.
Reviewed By: arxanas
Differential Revision:
D4622687
fbshipit-source-id:
6900f262e3810953227da2ecea9680d81ad56205