Fixing EOF behaviour

This was causing my machine to use 100% cpu. Read() was returning
0, nil. From my reading of the docs it's fair to interpret a zero length
bio read with no ssl errors as an EOF. I could be wrong.