Read socket line by line

The documentation states:
"Like stdin and file inputs, each event is assumed to be one line of text."

However the current implementation does not honour that by using readpartial()
without any line delimiter splitting afterwards.
Why not using gets() instead ?