r46825 - Revert "Always write before loseConnection."

mithrandi-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org
Newsgroups gmane.comp.python.twisted.commits
Message-ID <[email protected]>
Author: mithrandi
Date: Thu Feb 18 20:18:08 2016
New Revision: 46825

Modified:
   branches/openssl-f-8189/twisted/internet/test/connectionmixins.py
   branches/openssl-f-8189/twisted/internet/test/test_newtls.py
   branches/openssl-f-8189/twisted/test/test_ssl.py

Log:
Revert "Always write before loseConnection."

This reverts commit 776000ae74756e7f3812155b69d03aa5d511a182.

Modified: branches/openssl-f-8189/twisted/internet/test/connectionmixins.py
==============================================================================
--- branches/openssl-f-8189/twisted/internet/test/connectionmixins.py	(original)
+++ branches/openssl-f-8189/twisted/internet/test/connectionmixins.py	Thu Feb 18 20:18:08 2016
@@ -387,7 +387,6 @@
                 ClientFactory.forProtocol(lambda: clientProtocol))
             def disconnect(proto):
                 msg("About to disconnect %r" % (proto,))
-                proto.transport.write(b'x')
                 proto.transport.loseConnection()
             client.addCallback(disconnect)
             client.addErrback(lostConnectionDeferred.errback)

Modified: branches/openssl-f-8189/twisted/internet/test/test_newtls.py
==============================================================================
--- branches/openssl-f-8189/twisted/internet/test/test_newtls.py	(original)
+++ branches/openssl-f-8189/twisted/internet/test/test_newtls.py	Thu Feb 18 20:18:08 2016
@@ -98,7 +98,6 @@
         self.transport.unregisterProducer()
         # The producer was unregistered from the TLSMemoryBIOProtocol:
         self.result.append(self.transport.protocol._producer)
-        self.transport.write(b'x')
         self.transport.loseConnection()
 
 
@@ -167,7 +166,6 @@
                         self.transport.protocol._producer._producer._producer)
                     result.append(self.transport.producer._producer._producer)
                 self.transport.unregisterProducer()
-                self.transport.write(b'x')
                 self.transport.loseConnection()
 
         class StartTLSProtocol(ConnectableProtocol):

Modified: branches/openssl-f-8189/twisted/test/test_ssl.py
==============================================================================
--- branches/openssl-f-8189/twisted/test/test_ssl.py	(original)
+++ branches/openssl-f-8189/twisted/test/test_ssl.py	Thu Feb 18 20:18:08 2016
@@ -166,7 +166,6 @@
     """
 
     def connectionMade(self):
-        self.transport.write(b'x')
         self.transport.loseConnection()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.