Message303313
The bug was encountered when using the HTTPS client of the aiohttp package.
Calling the method set_protocol() on a SSL transport (_SSLProtocolTransport) does not have the expected result: the new protocol will never be used (i.e. its data_received() method won't be called). The previous one keeps receiving data.
The problem comes from asyncio/ssl_proto.py:308. In my understanding, _SSLProtocolTransport is modifying its local reference to the protocol but does not modify the reference in SSLProtocol, which is the one that is actually called.
So imo this line should look like "self.ssl_protocol._app_protocol = protocol"
I'll submit a github PR soon to fix this issue. |
|
Date |
User |
Action |
Args |
2017-09-29 08:59:34 | jlacoline | set | recipients:
+ jlacoline, yselivanov |
2017-09-29 08:59:33 | jlacoline | set | messageid: <1506675573.99.0.213398074469.issue31632@psf.upfronthosting.co.za> |
2017-09-29 08:59:33 | jlacoline | link | issue31632 messages |
2017-09-29 08:59:33 | jlacoline | create | |
|