Deal with reading empty buffer (SSL errno2) in timeout mode