def connect(self):

        tid = self.threadID()
        conn = self.connections.get(tid)
        if conn is None:
            if self.noisy:
                log.msg('adbapi connecting: %s %s%s' % (self.dbapiName,
                                                        self.connargs or '',
                                                        self.connkw or ''))
            conn = self.dbapi.connect(*self.connargs, **self.connkw)
            if self.openfun != None:
                self.openfun(conn)
            self.connections[tid] = conn
        return conn
Start trapping WINCH signals and resizing the PTY.
dataset/ETHPy150Open twisted/twisted/twisted/enterprise/adbapi.py/ConnectionPool.connect--crossover with--dataset/ETHPy150Open d11wtq/dockerpty/dockerpty/pty.py/WINCHHandler.start