Show
Ignore:
Timestamp:
07/01/08 01:02:12 (5 months ago)
Author:
tomk
Message:

moved TLS and SSL classes from transports_nb to new tls_nb module, fixed HTTP CONNECT proxy transport

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/bosh_support/src/common/xmpp/client_nb.py

    r9867 r9870  
    2626import random 
    2727 
    28 import transports_nb, dispatcher_nb, auth_nb, roster_nb, protocol 
     28import transports_nb, tls_nb, dispatcher_nb, auth_nb, roster_nb, protocol 
    2929from client import * 
    3030 
     
    185185                                                bosh_port = tcp_port) 
    186186                        else: 
    187                                         self.socket = transports_nb.NBHTTPProxySocket( 
    188                                                 on_disconnect=self.on_disconnect, 
    189                                                 proxy_creds=(None, None), 
    190                                                 xmpp_server=(self.Server, self.Port)) 
     187                                # HTTP CONNECT to proxy from environment variables 
     188                                self.socket = transports_nb.NBHTTPProxySocket( 
     189                                        on_disconnect=self.on_disconnect, 
     190                                        proxy_creds=(None, None), 
     191                                        xmpp_server=(self.Server, self.Port)) 
    191192                else:  
    192193                        self._on_tcp_failure = self._on_connect_failure 
     
    433434                                return 
    434435                        # otherwise start TLS    
    435                         transports_nb.NonBlockingTLS().PlugIn( 
     436                        tls_nb.NonBlockingTLS().PlugIn( 
    436437                                self, 
    437438                                on_tls_success=lambda: self._xmpp_connect(socket_type='tls'),