this is the openssl implementation. I think we should stick to this:
https://github.com/openssl/openssl/blob/master/apps/s_client.c#L1708
```
do
{
    mbuf_len = BIO_gets(fbio,mbuf,BUFSIZZ);
}
while (mbuf_len>3 && mbuf[3]=='-');
```