if len(self.line_buffer) > 0:
return self.line_buffer.pop(0)
while True:
ready = select.select([self.socket], [], [], int(timeout / 2))
if not ready[0]:
if len(self.line_buffer) > 0:
return self.line_buffer.pop(0)
while True:
ready = select.select([self.socket], [], [], int(timeout / 2))
if not ready[0]: