[PYTHON-CRYPTO] Memoryleak in SSL.Connection

Ng Pheng Siong ngps at POST1.COM
Mon Mar 15 13:48:24 CET 2004


On Mon, Mar 15, 2004 at 01:24:39PM +0100, Andre Reitz wrote:
> Perhaps this should be done like this.....
>
>     def setblocking(self,mode):
>         self.blockingmode=mode
>     ...
>     def send(self,...):
>         if self.blockingmode: return self._write_bio(...)
>         return self._write_nbio(...)
>
> Does anybody have a better idea?

Your idea sounds good enough! ;-)

Does it arrest the leak?

Cheers.

--
Ng Pheng Siong <ngps at netmemetic.com>

http://firewall.rulemaker.net -+- Firewall Change Management & Version Control
http://sandbox.rulemaker.net/ngps -+- Open Source Python Crypto & SSL




More information about the python-crypto mailing list