gtlsbio: handle BIO_CTRL_EOF
Otherwise we endup reading more than expected and openssl will produce the error: error:00000005:lib(0)::reason(5)
Otherwise we endup reading more than expected and openssl will produce the error: error:00000005:lib(0)::reason(5)