Message108212
I have tried refactoring the ssl code in order not to inherit from socket anymore, but it turned out suboptimal because chunks of code from the socket class then have to be duplicated.
Therefore, I instead propose a much simpler approach which is to add a forget() method to socket objects; this method "closes" the socket object (sets the internal fd to -1) without closing the underlying fd at all. This allows to create another socket (actually SSLSocket) from the same fd without having to dup() it.
Here is a patch; if the principle is accepted, I will add tests and docs. |
|
Date |
User |
Action |
Args |
2010-06-19 22:14:15 | pitrou | set | recipients:
+ pitrou, loewis, exarkun, janssen, giampaolo.rodola |
2010-06-19 22:14:15 | pitrou | set | messageid: <1276985655.04.0.643445903194.issue8524@psf.upfronthosting.co.za> |
2010-06-19 22:14:13 | pitrou | link | issue8524 messages |
2010-06-19 22:14:13 | pitrou | create | |
|