Trying to make _ssl_read more robust.

It should handle errors better.

Signed-off-by: Thiago Farina <tfarina@chromium.org>