Message102535
| Author |
cbay |
| Recipients |
cbay, giampaolo.rodola, janssen, pitrou, r.david.murray, vstinner |
| Date |
2010年04月07日.11:49:39 |
| SpamBayes Score |
2.915827e-06 |
| Marked as misclassified |
No |
| Message-id |
<1270640984.59.0.492457226876.issue8240@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here is a patch that implements SSLSocket.get_mode/set_mode, with the SSL_MODE_ENABLE_PARTIAL_WRITE and SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER constants defined in the ssl module.
The patch contains a test case and documentation. It's made against trunk 44327 and also applies nicely with --fuzz=3 on a 2.6.5.
There are no compatibility issues as no specific mode is set by default. It's up to the application to call SSLSocket.set_mode before use. I've tested my own use case with a set_mode(SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER), it works nicely. |
|