You're currently stopping the stream when encountering .\r\n but this means such a message:
Hi,
I like pasta.
My regards
.
Would get truncated at pasta. This makes sure we're looking for the actual end of message period (alone on a new line) instead of any period that is at the end of a line.
You're currently stopping the stream when encountering
.\r\n
but this means such a message:Would get truncated at
pasta
. This makes sure we're looking for the actual end of message period (alone on a new line) instead of any period that is at the end of a line.Closes #13