'Returns a connected Pathoc instance.'

def pathoc(self, sni=None):

    if self.ssl:
        conn = ('127.0.0.1', self.server.port)
    else:
        conn = None
    return LazyPathoc(conn, ('localhost', self.proxy.port), ssl=self.ssl, sni=sni, fp=None)
