Message356207
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). |
|
Date |
User |
Action |
Args |
2019-11-07 18:31:51 | aba | set | recipients:
+ aba, asvetlov, yselivanov |
2019-11-07 18:31:50 | aba | set | messageid: <1573151510.94.0.566528932469.issue38737@roundup.psfhosted.org> |
2019-11-07 18:31:50 | aba | link | issue38737 messages |
2019-11-07 18:31:50 | aba | create | |
|