Message317916
| Author | vstinner |
|---|---|
| Recipients | asvetlov, vstinner, yselivanov |
| Date | 2018-05-28.20:37:18 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1527539838.3.0.682650639539.issue33674@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
While debugging bpo-32458 (functional test on START TLS), I found a race condition in SSLProtocol of asyncio/sslproto.py. Sometimes, _sslpipe.feed_ssldata() is called before _sslpipe.shutdown(). * SSLProtocol.connection_made() -> SSLProtocol._start_handshake(): self._loop.call_soon(self._process_write_backlog) * SSLProtoco.data_received(): direct call to self._sslpipe.feed_ssldata(data) * Later, self._process_write_backlog() calls self._sslpipe.do_handshake() The first write is delayed by call_soon(), whereas the first read is a direct call to the SSL pipe. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-05-28 20:37:18 | vstinner | set | recipients: + vstinner, asvetlov, yselivanov |
| 2018-05-28 20:37:18 | vstinner | set | messageid: <1527539838.3.0.682650639539.issue33674@psf.upfronthosting.co.za> |
| 2018-05-28 20:37:18 | vstinner | link | issue33674 messages |
| 2018-05-28 20:37:18 | vstinner | create | |