Index: twisted/protocols/tls.py =================================================================== --- twisted/protocols/tls.py (revision 45115) +++ twisted/protocols/tls.py (working copy) @@ -705,7 +705,9 @@ @rtype: L{OpenSSL.SSL.Connection} """ context = self._oldStyleContextFactory.getContext() - return Connection(context, None) + connection = Connection(context, None) + connection.set_app_data(protocol) + return connection def serverConnectionForTLS(self, protocol):