'Returns a (messages, text log) tuple.'

def pathoc(self, specs, timeout=None, connect_to=None, ssl=None, ws_read_limit=None, use_http2=False):

    if (ssl is None):
        ssl = self.ssl
    logfp = io.StringIO()
    c = pathoc.Pathoc(('localhost', self.d.port), ssl=ssl, ws_read_limit=ws_read_limit, timeout=timeout, fp=logfp, use_http2=use_http2)
    with c.connect(connect_to):
        ret = []
        for i in specs:
            resp = c.request(i)
            if resp:
                ret.append(resp)
        for frm in c.wait():
            ret.append(frm)
        c.stop()
        return (ret, logfp.getvalue())
