Make sure that socket is readable before asking for bytesreadable
Authored by: artyom-beilis 2016-01-04
Parent: [r2396]
Child: [r2398]