Example #1
0
 def create_connection(self, conn, addr):
     # ensure that negotiation finishes...
     if conn.ssl.get_next_protos_negotiated() == b"spdy/3":
         return spdy_connection(self, conn, addr)
     else:
         return connection(self, conn, addr)
Example #2
0
 def create_connection(self, conn, addr):
     # ensure that negotiation finishes...
     if conn.ssl.get_next_protos_negotiated() == b'spdy/3':
         return spdy_connection(self, conn, addr)
     else:
         return connection(self, conn, addr)
Example #3
0
 def create_connection(self, conn, addr):
     if conn.next_proto == b"spdy/3":
         return spdy_connection(self, conn, addr)
     else:
         return connection(self, conn, addr)
Example #4
0
 def create_connection(self, conn, addr):
     if conn.next_proto == b'spdy/3':
         return spdy_connection(self, conn, addr)
     else:
         return connection(self, conn, addr)