Proper TLS EOF detection #149