This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aba
Recipients aba, asvetlov, yselivanov
Date 2019-11-07.18:31:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573151510.94.0.566528932469.issue38737@roundup.psfhosted.org>
In-reply-to
Content
We developed an alternate asyncio TLS transport based on GnuTLS (https://pypi.org/project/aio-gnutls-transport/). In this project we want to support half-closed TLS connections (WriteTransport.write_eof()).


Unfortunately StreamReaderProtocol won't interoperate properly without a monkey patch because its eof_received() method returns True for any ssl transport (this is to avoid a warning in the _SSLProtocolTransport):

    def eof_received(self):
        self._stream_reader.feed_eof()
        if self._over_ssl:
            # Prevent a warning in SSLProtocol.eof_received:
            # "returning true from eof_received()
            # has no effect when using ssl"
            return False
        return True

As this is an unspecified internal feature, very specific to the _SSLProtocolTransport class (which issues the warning), we think the test should be made explicitly against this class (see the attached patch).
History
Date User Action Args
2019-11-07 18:31:51abasetrecipients: + aba, asvetlov, yselivanov
2019-11-07 18:31:50abasetmessageid: <1573151510.94.0.566528932469.issue38737@roundup.psfhosted.org>
2019-11-07 18:31:50abalinkissue38737 messages
2019-11-07 18:31:50abacreate