socket cleanup: remove __getattr__, rename fd to _sock, fix sendall
- store the real socket as '_sock' instead of 'fd'; fd is available as a deprecated alias - __getattr__ is gone; it screws up subclassing; the delegated methods are implemented directly, similar to how stdlib socket does it - sendall is fixed to never call _sock.sendall (it used to do it when timeout==0.0) - this won't work for ssl subclasses it also does not call time.time() twice in a row anymore
Showing
Please register or sign in to comment