change _fileobj.readline to _socket.read