FakeSocket class. Without it, the sendall() call got the method on
the underlying socket object, and that messed up SSL.
Does httplib use other methods of sockets that FakeSocket doesn't support?
Someone should take a look... (I'll try to give it a once-over.)
2.2.1 bugfix candidate.
def send(self, stuff, flags = 0):
return self.__ssl.write(stuff)
+ def sendall(self, stuff, flags = 0):
+ return self.__ssl.write(stuff)
+
def recv(self, len = 1024, flags = 0):
return self.__ssl.read(len)