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 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.
History
Date User Action Args
2010-04-07 11:49:44cbaysetrecipients: + cbay, janssen, pitrou, vstinner, giampaolo.rodola, r.david.murray
2010-04-07 11:49:44cbaysetmessageid: <1270640984.59.0.492457226876.issue8240@psf.upfronthosting.co.za>
2010-04-07 11:49:42cbaylinkissue8240 messages
2010-04-07 11:49:42cbaycreate