'Test the different SSL protocols'

def connect(self):

    for protocol in _protocols:
        sock = self.connect_socket()
        sock = self.make_ssl_aware(sock, protocol)
        if (sock is not None):
            break
    else:
        msg = 'Unable    to    create    a    SSL    connection    using    protocols:    %s'
        protocols = ',    '.join([str(p) for p in _protocols])
        raise HTTPRequestException((msg % protocols))
