'Read all data until EOF; block until connection closed.'

def read_all(self):

    self.process_rawq()
    while (not self.eof):
        self.fill_rawq()
        self.process_rawq()
    buf = self.cookedq
    self.cookedq = ''
    return buf
